• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Library Manager - open terminal option on right clicking...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 1865
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Library Manager - open terminal option on right clicking any cell or views

firebolt3
firebolt3 over 1 year ago

Is there a way to get additional option like open terminal on right clicking any library/cell/view in library manager? This is better than getting file path from properties & then opening it in terminal.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    You could do this with the library manager customisation SKILL functions covered in the Library Manager Functions chapter of the Cadence Application Infrastructure SKILL Reference.

    I wonder why you would need to do this though - it's the kind of thing that I might do as an application engineer to check when something is broken, but I'm a bit surprised that you'd need to do this very often?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • firebolt3
    firebolt3 over 1 year ago in reply to Andrew Beckett

    My admin has enabled failsafe for all applications including virtuoso which gets auto-killed after certain period of time. This leaves lock files.
    Also, can we add option like fix lock file under right click? I have seen coth state option in one of old project.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago in reply to firebolt3

    Removing lock files this way is generally a bad (and risky) thing to do. It suggests that your system is not set up correctly and your admin should address this.

    The locking infrastructure relies on a couple of lightweight processes, clsbd and oaFSLockD (the latter is a similar process for OA data). These are both what are referred to as "boolean daemons". All they are there for is for a process (which might be remote) to be able to enquire whether a given process id is still alive on the machine they are running on, and return a yes/no (true/false) answer - hence the term "boolean". 

    When Virtuoso tries to lock a file and there's an existing lock file, then it will look in the lock file and determine the host and process id which had the lock. It then contacts the boolean daemon (either clsbd or oaFSLockD depending on the kind of data) and asks whether that process id is alive or not. If it's not alive, then the lock can be reclaimed and the new process can lock it instead. If either the process is still running or there is no answer (in which case it can't be determined safely) then the lock request is denied. 

    There are two approaches to running clsbd and oaFSLockD - one is to let them be launched the first time that Virtuoso starts (they normally persist beyond the execution of Virtuoso), but this runs the risk of killer mechanisms such as you describe taking them out. You can set up the "daemon starter" to separate them from the parent process, but again your killer mechanism should leave them alone. Or they could be started at boot time as a system service and kept alive (which needs admin work). The benefit of the latter is that if the machine is rebooted you don't have to wait until somebody runs Virtuoso on the machine for the stranded lock recovery mechanism to work.

    There is a UNIX command, clsAdminTool which can be used to look for and remove lock files - although this does not check that the lock being removed is not genuinely locked elsewhere - this is intended to be the backup mechanism if all else has failed (e.g. the machine with the lock is no longer accessible). If the stranded lock recovery mechanism is working and everything is normal, it should be very rare to need to remove lock files.

    I would be very wary of having a menu in the library manager to remove lock files because users would not know if the lock was genuine, and removing a lock when it is genuinely still locked can lead to loss of data (since two processes think they they own the data, you get whoever wrote last).

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 1 year ago in reply to firebolt3

    Removing lock files this way is generally a bad (and risky) thing to do. It suggests that your system is not set up correctly and your admin should address this.

    The locking infrastructure relies on a couple of lightweight processes, clsbd and oaFSLockD (the latter is a similar process for OA data). These are both what are referred to as "boolean daemons". All they are there for is for a process (which might be remote) to be able to enquire whether a given process id is still alive on the machine they are running on, and return a yes/no (true/false) answer - hence the term "boolean". 

    When Virtuoso tries to lock a file and there's an existing lock file, then it will look in the lock file and determine the host and process id which had the lock. It then contacts the boolean daemon (either clsbd or oaFSLockD depending on the kind of data) and asks whether that process id is alive or not. If it's not alive, then the lock can be reclaimed and the new process can lock it instead. If either the process is still running or there is no answer (in which case it can't be determined safely) then the lock request is denied. 

    There are two approaches to running clsbd and oaFSLockD - one is to let them be launched the first time that Virtuoso starts (they normally persist beyond the execution of Virtuoso), but this runs the risk of killer mechanisms such as you describe taking them out. You can set up the "daemon starter" to separate them from the parent process, but again your killer mechanism should leave them alone. Or they could be started at boot time as a system service and kept alive (which needs admin work). The benefit of the latter is that if the machine is rebooted you don't have to wait until somebody runs Virtuoso on the machine for the stranded lock recovery mechanism to work.

    There is a UNIX command, clsAdminTool which can be used to look for and remove lock files - although this does not check that the lock being removed is not genuinely locked elsewhere - this is intended to be the backup mechanism if all else has failed (e.g. the machine with the lock is no longer accessible). If the stranded lock recovery mechanism is working and everything is normal, it should be very rare to need to remove lock files.

    I would be very wary of having a menu in the library manager to remove lock files because users would not know if the lock was genuine, and removing a lock when it is genuinely still locked can lead to loss of data (since two processes think they they own the data, you get whoever wrote last).

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • firebolt3
    firebolt3 over 1 year ago in reply to Andrew Beckett

    Thanks Andrew for detailed explaination. I will check with my Admin to fix the issue.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information