performans problems

Posted on 2006-05-29
Last Modified: 2013-12-27
I'm using Catia V5 on Sun solaris 9  on Sun Blade 2000 WS with 2 CPU's and 4 GB ram, but I still performans problems. I always get memory problems  and the cpu's aren't used effectively when ever I try to run complex assemblies with catia v5. Is there any tuning needed that I can to have more performans.
Question by:TAI-
    LVL 14

    Accepted Solution

    I'm not familiar with the actual software, but on Solaris, the first thing I check when having perfofmance problems is the swap space.

    If the person who set up the box didn't change the defaults, then you likely do not have enough swap space.  

    Many folks would not think this is a problem with 4gb ram, but the default mount for /tmp is to use tempfs, which uses swap space.  So, if you have processes that use a lot of temporary files, then it fills up, and slows things down.

    I always have at least 1 gig of swap, and mostly still go by the onld adage of swap being 2 x memory.
    LVL 10

    Assisted Solution

    TAI, be careful when you hear you need more swap space to fix a performance problem - no offense arthurjb, we've had this disagreement in the past.  Adding additional swap to a system could only increase your performance issues.  SWAP space on most servers is not a high performance disk setup.  Forcing a lot of paging to swap sapce (whether it be heavy paging or heavy swapping) isn't a good idea in situations like this.

    Assuming your problem is really memory based - your problem is *MEMORY* not SWAP.  Adding swap only increases how much more you can page onto a *physical disk* - it doesn't allow you to address an application that is consuming most if not all of your 4GB of physical memory.  Disk accesses is magnitures of order slower then accessing something in memory.

    You need to figure out why this application is having a memory problem then figure out how much more memory you need (assuming you don't have a memory leak issue that is) and upgrade your memory.  Yes, I know that not everyone can simply do a quick and easy upgrade to their memory subsystems.
    LVL 14

    Expert Comment

    Nukfor makes some good points, but it is important to note that the reason I espoused more swap space was not for the swap itself, but for the tempfs.

    The lack of tmp space (which uses tempfs) caused by the lack of swap space (the source of tempfs space)  could make it look like a memory problem, when it is actually processes not being able to write tmp files.

    Lots of system processes use tmp, including nis+ which is why one of the symptoms of insufficient tmp space is the loss of ability to login.

    Another fix, if you are concerned about the performance of swap, would be to mount /tmp as its own partition with a lot of space, which would take care of Nukfror's concern, since it would only be used for tmp, and not swap.

    Solaris is smart enough to know when it needs to swap, but if the resources are not available, then it can't.  With 4 ig of memory, you shouldn't be having memory problems unless you have a memory leak...

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now