LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   16 GB of RAM and Linux still uses over 1 GB of a 2 GB swap partition!? (https://www.linuxquestions.org/questions/linux-software-2/16-gb-of-ram-and-linux-still-uses-over-1-gb-of-a-2-gb-swap-partition-96743/)

lumberjack77 09-25-2003 10:22 AM

16 GB of RAM and Linux still uses over 1 GB of a 2 GB swap partition!?
 
I am lost as to why my Red Hat 9, Dell 6650, Quad 2.4 GHZ Xeon, 16GB RAM server with a fiber direct attach EMC Clarion array is eating into over 1GB of of a 2GB swap partition. Common sense says that you put 16GB of RAM in a server and swap should never be needed.

Anyone have experience/input regarding why this is or what I might be doing wrong?

Nezzo 09-25-2003 11:00 AM

Just a guess, but maybe your kernel can't handle all of that ram. Like i said, just a guess.

issue the command swapoff to your swap partition and see if it causes any problems after a while.

druuna 09-25-2003 11:06 AM

You don't mention this, but you did recompile your kernel to tell linux that it has more mem then the average pc??

Processor type and features -> High Memory Support -> 64GB

There are some other option, check them out too.

Gorbachov 09-25-2003 11:09 AM

Hi,

Usually there is more than 70-80 services running on the Linux OS...they are basic and system services actually all of the services...but this services are not all the time up...they are in status "sleep"...so they are in the swap...:) And sometimes the RAM is not the sure est place for collecting info so the intelligent Linux decide to keep the temporary info into the swap...If you make the swap 500Mb or smaller there won't be problem but Linux will calculate it and make the system again optimized...:)

Gorbachov

lumberjack77 09-25-2003 11:45 AM

I am running Red Hat 9 kernel 2.4.20-20.9bigmem so the kernel should be able to handle the 16GB of RAM. When the system is on its own, doing day end reports and fully utilizing all processors, the swap is hardly touched, but when we have about 250 telnet sessions accessing our Progress database, the swap grows substantially. We are also experiencing slowness. On our previous Red Hat Advanced Server 2.1 kernel, the swap barely went over 50MB but the server hanged often.

Gallienus 09-25-2003 11:49 AM

Big Mem
 
I know that one of the few kernal varients you can set with the RH installation disks are a large memory one called BigMem. You may want to enable this for over 2GB, you don't need to develop a custom kernal for it.

adz 09-25-2003 12:09 PM

Also have a look at the output of top to see what's eating all your memory.

druuna 09-25-2003 12:09 PM

Before I spill my 2 cents: 250 telnet sessions?? Must give you a very save and secure feeling ;)

I've read, more then once, that some versions of telnetd have bugs (memory leaks among others).

From the man page:

Because of bugs in the original 4.2 BSD telnet(1), in.telnetd performs
some dubious protocol exchanges to try to discover if the remote client
is, in fact, a 4.2 BSD telnet(1).

Another good reason to get rid of telnet..........

lumberjack77 09-25-2003 01:07 PM

Drunna:
Okay, I will admit I am a newbie on Linux(less than 1 year), so don't laugh when I ask what other option do I have other than telnet that will allow dummy terminals hooked up via serial connection to access my Linux system? I use SSH to do my work from my laptop.

Gorbachov:
I see on my top output that I have about 1450 processes with 1400 of those sleeping. Is this what you mean? Linux is putting those 1400 sleeping processes in swap?

Lastly, we are running a product called Unform that allows us to print to laser printers. We are getting significant zombies (50) that seem to be related (per the PS command). Could this be related to the high swap useage?


All times are GMT -5. The time now is 03:19 AM.