I installed Linux recently on my PC and finding it difficult to boost its performance.
It takes hell lot of time to open Mozilla, text pad , & even the booting process is too slow, many a times I got to manually power off to shutdown the computer.
I will be glad if you could help me boost the Linux performance on my PC.
Please take a look at the following details
1) Linux distribution : CentOS 5
2) RAM : 1 GB
3) AMD 2 GHz Processor
4) 80 GB of hard drive
and let it run for some time - 10 minutes or so - while you are working normally. Then post the content of the file here to discuss things further.
It is vital in any tuning project not to jump to any conclusions too fast. First gather the data, then arrange it, only then interpret it. Only when you know what the bottleneck on your system is it makes sense to talk about tuning measures.
"Increase RAM" may in most cases help, because most machines can do better with more RAM and even if it does not help it will not hurt either. But this is like "get yourself more money" as an advice to any problem: sure, it won't hurt, but it might not be a cure for every problem either.
and let it run for some time - 10 minutes or so - while you are working normally. Then post the content of the file here to discuss things further.
It is vital in any tuning project not to jump to any conclusions too fast. First gather the data, then arrange it, only then interpret it. Only when you know what the bottleneck on your system is it makes sense to talk about tuning measures.
"Increase RAM" may in most cases help, because most machines can do better with more RAM and even if it does not help it will not hurt either. But this is like "get yourself more money" as an advice to any problem: sure, it won't hurt, but it might not be a cure for every problem either.
I hope this helps.
bakunin
Thank you Dangral and Bakunin !
I see something interesting on system monitor.
only 20-25% of RAM & around 8% of swap are being utilized on average.
Please take a look at the following Vmstat output as well.
Last edited by bakunin; 11-04-2008 at 11:53 AM..
Reason: Please use code-tags!
I will elaborate further on this later, just a few impressions on first glance:
Your system seems to have not enough RAM for what you are doing. The result is some heavy swapping going on. The vmstat output is somewhat different from the system i usually work on (AIX), but a few things never change:
Look at the first two columns, named "r" and "b". The "r" is the number of running processes at that time, "b" is the number of blocked processes. "blocked" means the process would be ready to run but has to wait for some reason. In a majority of cases this is because it was swapped out earlier and now is waiting until swapping it in has finished.
The depth of the blocked-queue should therefore ideally be a constant zero - everything else is alarming.
On the right part of the output the CPU activity is shown. "us" "sy" "id" "wa" are percent values and add up to 100. They show how much time the CPU has spent in user space, system routines, idling and waiting. In an ideal world the CPU would spent most of its time in us and sy, the rest would go to id and wa would be 0. Every time the wa value is bigger than 0 this means that the CPU has found nothing productive to do. Most of the times this is also a side effect of processes swapping in and out, because as long as the swapping goes on the CPU can do nothing but wait, save for the few system calls necessary for the swapping itself.
I second the notion that VMWARE is using a lot of memory. Are you running Windows within your Linux box? If not, I'd turn of VM or use another solution.
So if you end up still needing swap, get a second disk drive and put the swap partition on the second drive. Unless using scsi, that drive should be on the secondary IDE / STATA channel.
I will elaborate further on this later, just a few impressions on first glance:
Your system seems to have not enough RAM for what you are doing. The result is some heavy swapping going on. The vmstat output is somewhat different from the system i usually work on (AIX), but a few things never change:
Look at the first two columns, named "r" and "b". The "r" is the number of running processes at that time, "b" is the number of blocked processes. "blocked" means the process would be ready to run but has to wait for some reason. In a majority of cases this is because it was swapped out earlier and now is waiting until swapping it in has finished.
The depth of the blocked-queue should therefore ideally be a constant zero - everything else is alarming.
On the right part of the output the CPU activity is shown. "us" "sy" "id" "wa" are percent values and add up to 100. They show how much time the CPU has spent in user space, system routines, idling and waiting. In an ideal world the CPU would spent most of its time in us and sy, the rest would go to id and wa would be 0. Every time the wa value is bigger than 0 this means that the CPU has found nothing productive to do. Most of the times this is also a side effect of processes swapping in and out, because as long as the swapping goes on the CPU can do nothing but wait, save for the few system calls necessary for the swapping itself.
I am trying to use the split provided by boost.
I have a string and want to split on "/".
string value = "trig/4";
Have no idea how to compile and link it. I have extracted boost in
/chrisd/tomso-12.04/source/library/boost_1_52_0 In my program /raytrac.cc I have put
... (5 Replies)
Hi,
I just started using CMake and the Boost Libraries. In this progress I encountered some problems.
One of these problems is combining Boost unit tests with cmake. I don't know how to set the whole project up. I tried to set up a simple test project. This contains a main.cpp a comp.cpp and the... (0 Replies)
Hello all,
I am trying to "make" a database system, VDB (Veritas Data Base), and when I run "make" I receive the following error:
VDBException.h:19: error: expected `)' before '*' token
VDBException.h:20: error: expected `)' before '*' token
VDBException.h:43: error: expected `)' before '*'... (4 Replies)
Hi,
Based on the following example in the Boost C++ website:
www. boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp]doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp
I tried to create a similar TCP server that waits to accept a client connection... (0 Replies)
I always had helpful replies from this site when ever I have posted a question.
My current problem is that I am trying to read a book titled "Solaris(TM) Performance and Tools: DTrace and MDB Techniques for Solaris 10" and I am frustrated because inspite of the fact that it is a good book I just... (2 Replies)
Hi All
I am working unders Sun Solaris and I am not
"/opt/boost/boost/thread/detail/thread.hpp", line 344: Error: boost::thread::thread(boost::thread&) is not accessible from boost::move(boost::detail::thread_move_t<boost::thread>).
Do you know if there are other solutions other than... (2 Replies)
Is it possible to build Boost 1.35 using Sun Studio 10?
I can build Boost 1.35 using Sun Studio 11 successful. However, i'm unable to build it using Sun Studio 10 using the exact method.
I really apprecaite if any expert can help on this.
Thanks, (2 Replies)
sorry wrong forum..i dont know how to delete this or how to move it to HP UX section...
I tested SAX XML parsing using xerces(http://xerces.apache.org/xerces-j/). I tested on Windows XP and HP-UX . I found that parsing time on HP is 5 times that on Windows. My server startup reads a lot of XML... (1 Reply)