Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem with our servers every once in awhile. They are red hat 4. This particular case, the server has 2x dual core Opteron processors and 26 gb of RAM and I've dug around, without finding a cause. Very odd.
The ssh shell performance is horrible.
Just doing an ls of one file is very slow. About 1.5 seconds when it should be about .002 seconds.
The disk IO is non existent according to sar and top.
Anyone have ideas?
uname:
Code:
2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64 x86_64 x86_64 GNU/Linux
Did you try telnet? Or ftp? Something unencrypted and character-based.
For ftp, check if ls is also slow and then check a transfer.
Could be network related, or host related (encryption layer, general problem..)
It's not using any swap.. very unusual. Normally Linux always has a small amt of RAM free (as here) and a small amt of swap used. Zero swap used is practically unheard of.
It's not using any swap.. very unusual. Normally Linux always has a small amt of RAM free (as here) and a small amt of swap used. Zero swap used is practically unheard of.
The thing is 24G is lots of RAM, but 47M free is tiny by comparison and zero swap is not right. Even when a Unix/Linux system is just ticking over it always uses a small amt of swap, prob just for bookkeeping purposes (ie so it knows where swap has got to).
As soon as a prog on that box tries to use some more RAM, it's burn that 47M real fast and slow down. Unix/Linux needs some free RAM at all times to move processes/data around eg into/out of the cpu (run list)
The thing is 24G is lots of RAM, but 47M free is tiny by comparison and zero swap is not right. Even when a Unix/Linux system is just ticking over it always uses a small amt of swap, prob just for bookkeeping purposes (ie so it knows where swap has got to).
As soon as a prog on that box tries to use some more RAM, it's burn that 47M real fast and slow down. Unix/Linux needs some free RAM at all times to move processes/data around eg into/out of the cpu (run list)
I would probably agree if I couldn't find a lot of evidence that shows otherwise. Granted this example doesn't show 0, but close. The next one is a new server and shows 0. I'm not sure why swap used is 0 and I'm not sure how to debug why.
Another server:
Code:
top - 22:22:44 up 52 days, 7:51, 10 users, load average: 1.94, 1.88, 1.81
Tasks: 142 total, 2 running, 138 sleeping, 0 stopped, 2 zombie
Cpu0 : 2.5%us, 2.5%sy, 57.8%ni, 35.7%id, 0.8%wa, 0.0%hi, 0.7%si, 0.0%st
Cpu1 : 4.8%us, 11.4%sy, 17.6%ni, 53.0%id, 11.6%wa, 0.1%hi, 1.5%si, 0.0%st
Mem: 6120104k total, 6050876k used, 69228k free, 252464k buffers
Swap: 12582900k total, 44k used, 12582856k free, 3573568k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND
23440 user1 37 12 8424 5964 508 R 97 0.1 54250:45 1 john
3888 mysql 15 0 765m 675m 6612 S 6 11.3 3864:17 1 mysqld
3140 user1 15 0 10724 1264 892 R 2 0.0 0:00.01 0 top
6083 root 5 -10 302m 222m 204m S 2 3.7 6403:37 1 vmware-vmx
You have 47M free but 702M buffered. So you really have 749M free from what I see.
Depending on swapiness, it will prefer to use the buffer rather than swap on disk.
When buffers drop under a certain level as free then it should use the swap.
It's not using any swap.. very unusual. Normally Linux always has a small amt of RAM free (as here) and a small amt of swap used. Zero swap used is practically unheard of.
Quote:
Originally Posted by chrism01
The thing is 24G is lots of RAM, but 47M free is tiny by comparison and zero swap is not right. Even when a Unix/Linux system is just ticking over it always uses a small amt of swap, prob just for bookkeeping purposes (ie so it knows where swap has got to).
As soon as a prog on that box tries to use some more RAM, it's burn that 47M real fast and slow down. Unix/Linux needs some free RAM at all times to move processes/data around eg into/out of the cpu (run list)
I'm amazed people seem to think that zero swap is unheard of... Just logged into my 24/7 (for the most part) bittorrent (40 torrents seeding currently, DL at 80KB/s and upload at 20KB/s) and media streaming server located at home:
Most 'used' RAM is just cache that can be overwritten easily if needed. There is very little RAM that is required if you are managing your server correctly. 24GB of RAM should be able to handle the requirements of Linux pretty well, since my 96MB RAM seems to run everything dandily
Well, that's very interesting. I've never seen a server that had absolutely zero swap used and zero load avgs. As I say, normally just basic background activity generates some numbers....
You learn something everyday...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.