LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 13.1 and Memory Issues (https://www.linuxquestions.org/questions/slackware-14/slackware-13-1-and-memory-issues-812580/)

SeRi@lDiE 06-06-2010 10:19 PM

Slackware 13.1 and Memory Issues
 
As my previous post state I just moved from Fedora to SLackware 13.1... My question is:

Does Slackware 13.1 requires more than 4GB of ram? I have built a very generic custom kernel to enable HUGEMEM64 and my ram gets eaten up in less than two days and the system starts swapping... Is this normal?

Thank You!

MS3FGX 06-06-2010 10:44 PM

No, that doesn't sound normal at all. What process is taking up all the RAM?

SeRi@lDiE 06-06-2010 10:51 PM

Thanks for the reply...

Info Center has it as:

4% Free Phisical Memory
78% Disk Cache
3% Application Data

I am not sure how to get a snap shoot of the memory usage per application but as info center it does not seem that the applications are been a problem is more of the Disk Cache... ?!?

T3slider 06-06-2010 11:05 PM

In a terminal:
Code:

$ free
(or `free -m` for more readable output) will tell you about current memory usage.
Code:

$ ps aux
will display the memory usage per application (or try `top` to get realtime memory usage).

afreitascs 06-06-2010 11:10 PM

You have more than 4G of memory?

Quote:

Kernel Help

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

│ CONFIG_HIGHMEM64G: │
│ │
│ Select this if you have a 32-bit processor and more than 4 │
│ gigabytes of physical RAM.

│ │
│ Symbol: HIGHMEM64G [=n] │
│ Prompt: 64GB │
│ Defined at arch/x86/Kconfig:1042 │
│ Depends on: <choice> && !M386 [=n] && !M486 [=n] │
│ Location: │
│ -> Processor type and features │
│ -> High Memory Support (<choice> [=y]) │
│ Selects: X86_PAE [=n]

│ CONFIG_HIGHMEM4G: │
│ │
│ Select this if you have a 32-bit processor and between 1 and 4 │
│ gigabytes of physical RAM
. │
│ │
│ Symbol: HIGHMEM4G [=y] │
│ Prompt: 4GB │
│ Defined at arch/x86/Kconfig:1035 │
│ Depends on: <choice> && !X86_NUMAQ [=n] │
│ Location: │
│ -> Processor type and features │
│ -> High Memory Support (<choice> [=y])


SeRi@lDiE 06-06-2010 11:16 PM

Here you go guys:

Code:


            total      used      free    shared    buffers    cached
Mem:          4049      3862        187          0        167      3191
-/+ buffers/cache:        503      3545
Swap:        9224          0      9224



USER      PID %CPU %MEM    VSZ  RSS TTY      STAT START  TIME COMMAND
root        1  0.0  0.0    776  304 ?        Ss  Jun05  0:01 init [4] 
root        2  0.0  0.0      0    0 ?        S    Jun05  0:00 [kthreadd]
root        3  0.0  0.0      0    0 ?        S    Jun05  0:00 [migration/0]
root        4  0.0  0.0      0    0 ?        S    Jun05  0:00 [ksoftirqd/0]
root        5  0.0  0.0      0    0 ?        S    Jun05  0:00 [migration/1]
root        6  0.0  0.0      0    0 ?        S    Jun05  0:00 [ksoftirqd/1]
root        7  0.0  0.0      0    0 ?        S    Jun05  0:00 [events/0]
root        8  0.0  0.0      0    0 ?        S    Jun05  0:00 [events/1]
root        9  0.0  0.0      0    0 ?        S    Jun05  0:00 [cpuset]
root        10  0.0  0.0      0    0 ?        S    Jun05  0:00 [khelper]
root        13  0.0  0.0      0    0 ?        S    Jun05  0:00 [netns]
root        16  0.0  0.0      0    0 ?        S    Jun05  0:00 [async/mgr]
root      226  0.0  0.0      0    0 ?        S    Jun05  0:00 [sync_supers]
root      228  0.0  0.0      0    0 ?        S    Jun05  0:00 [bdi-default]
root      230  0.0  0.0      0    0 ?        S    Jun05  0:00 [kblockd/0]
root      231  0.0  0.0      0    0 ?        S    Jun05  0:00 [kblockd/1]
root      233  0.0  0.0      0    0 ?        S    Jun05  0:00 [kacpid]
root      234  0.0  0.0      0    0 ?        S    Jun05  0:00 [kacpi_notify]
root      235  0.0  0.0      0    0 ?        S    Jun05  0:00 [kacpi_hotplug]
root      354  0.0  0.0      0    0 ?        S    Jun05  0:00 [ata/0]
root      355  0.0  0.0      0    0 ?        S    Jun05  0:00 [ata/1]
root      356  0.0  0.0      0    0 ?        S    Jun05  0:00 [ata_aux]
root      360  0.0  0.0      0    0 ?        S    Jun05  0:00 [ksuspend_usbd]
root      364  0.0  0.0      0    0 ?        S    Jun05  0:00 [khubd]
root      367  0.0  0.0      0    0 ?        S    Jun05  0:00 [kseriod]
root      373  0.0  0.0      0    0 ?        S    Jun05  0:00 [kmmcd]
root      412  0.0  0.0      0    0 ?        S    Jun05  0:00 [rpciod/0]
root      413  0.0  0.0      0    0 ?        S    Jun05  0:00 [rpciod/1]
root      414  0.0  0.0      0    0 ?        S    Jun05  0:00 [kvm-irqfd-clean]
root      451  0.0  0.0      0    0 ?        S    Jun05  0:00 [kswapd0]
root      503  0.0  0.0      0    0 ?        S    Jun05  0:00 [aio/0]
root      504  0.0  0.0      0    0 ?        S    Jun05  0:00 [aio/1]
root      515  0.0  0.0      0    0 ?        S    Jun05  0:00 [nfsiod]
root      522  0.0  0.0      0    0 ?        S    Jun05  0:00 [crypto/0]
root      523  0.0  0.0      0    0 ?        S    Jun05  0:00 [crypto/1]
root      726  0.0  0.0      0    0 ?        S    Jun05  0:00 [scsi_eh_0]
root      729  0.0  0.0      0    0 ?        S    Jun05  0:00 [scsi_eh_1]
root      732  0.0  0.0      0    0 ?        S    Jun05  0:00 [scsi_eh_2]
root      735  0.0  0.0      0    0 ?        S    Jun05  0:04 [scsi_eh_3]
root      738  0.0  0.0      0    0 ?        S    Jun05  0:00 [scsi_eh_4]
root      741  0.0  0.0      0    0 ?        S    Jun05  0:00 [scsi_eh_5]
root      809  0.0  0.0      0    0 ?        S    Jun05  0:00 [kpsmoused]
root      819  0.0  0.0      0    0 ?        S    Jun05  0:00 [kstriped]
root      823  0.0  0.0      0    0 ?        S    Jun05  0:00 [kondemand/0]
root      825  0.0  0.0      0    0 ?        S    Jun05  0:00 [kondemand/1]
root      874  0.0  0.0      0    0 ?        S    Jun05  0:00 [usbhid_resumer]
root      891  0.0  0.0      0    0 ?        S    Jun05  0:00 [hd-audio0]
root      958  0.0  0.0      0    0 ?        S    Jun05  0:00 [scsi_eh_6]
root      959  0.0  0.0      0    0 ?        S    Jun05  0:03 [usb-storage]
root      983  0.0  0.0      0    0 ?        S    Jun05  0:00 [kjournald]
root      1014  0.0  0.0  2824  1328 ?        S<s  Jun05  0:00 /sbin/udevd --daemon
root      1354  0.0  0.0      0    0 ?        S    Jun05  0:00 [kdmflush]
root      1360  0.0  0.0      0    0 ?        S    Jun05  0:00 [kdmflush]
root      1382  0.0  0.0      0    0 ?        S    Jun05  0:00 [flush-8:0]
root      1407  0.0  0.0      0    0 ?        S    Jun05  0:00 [kjournald]
root      1434  0.0  0.0  1856  640 ?        Ss  Jun05  0:00 /usr/sbin/syslogd
root      1438  0.0  0.0  1804  412 ?        Ss  Jun05  0:00 /usr/sbin/klogd -c 3 -x
root      1514  0.0  0.0  1988  496 ?        Ss  Jun05  0:00 /sbin/dhcpcd -t 10 eth0
bin      1584  0.0  0.0  1908  484 ?        Ss  Jun05  0:00 /sbin/rpc.portmap
root      1588  0.0  0.0  2056  768 ?        Ss  Jun05  0:00 /sbin/rpc.statd
root      1687  0.0  0.0  1848  548 ?        Ss  Jun05  0:00 /usr/sbin/inetd
root      1690  0.0  0.0  4152  1024 ?        Ss  Jun05  0:00 /usr/sbin/sshd
root      1697  0.0  0.0  1812  632 ?        Ss  Jun05  0:00 /usr/sbin/acpid
81        1708  0.0  0.0  2820  1304 ?        Ss  Jun05  0:00 /usr/bin/dbus-daemon --system
82        1713  0.0  0.1  7072  4996 ?        Ss  Jun05  0:00 /usr/sbin/hald --daemon=yes
root      1714  0.0  0.0  3340  1152 ?        S    Jun05  0:00 hald-runner
root      1736  0.0  0.0  3440  1148 ?        S    Jun05  0:00 hald-addon-input: Listening on /dev/input/event4 /dev/input/event8 /dev/input/event7 /dev/input/event6 /dev/input/event0 /dev/input/event1
root      1749  0.0  0.0  3444  1136 ?        S    Jun05  0:02 hald-addon-storage: polling /dev/sdd (every 2 sec)
root      1757  0.0  0.0  3452  1116 ?        S    Jun05  0:00 /usr/libexec/hald-addon-cpufreq
82        1758  0.0  0.0  3324  1108 ?        S    Jun05  0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root      1759  0.0  0.0  3444  1140 ?        S    Jun05  0:04 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root      1785  0.0  0.0  5784  2492 ?        Ss  Jun05  0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
root      1790  0.0  0.0  2036  664 ?        Ss  Jun05  0:00 /usr/sbin/crond -l10
daemon    1792  0.0  0.0  2028  412 ?        Ss  Jun05  0:00 /usr/sbin/atd -b 15 -l 1
root      1809  0.0  0.0  2020  464 ?        Ss  Jun05  0:00 /usr/sbin/gpm -m /dev/mouse -t imps2
root      1811  0.0  0.0  1804  540 tty6    Ss+  Jun05  0:00 /sbin/agetty 38400 tty6 linux
root      1812  0.0  0.0  3888  1024 ?        Ss  Jun05  0:00 /usr/bin/kdm -nodaemon
root      1813  0.0  0.0  2820  1256 ?        S<  Jun05  0:00 /sbin/udevd --daemon
root      1814  0.0  0.0  2820  1256 ?        S<  Jun05  0:00 /sbin/udevd --daemon
root      1816  1.8  1.4  72980 61900 tty7    Ss+  Jun05  27:39 /usr/bin/X -br -novtswitch -quiet -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-46z5jb
root      1819  0.0  0.0  4212  1552 ?        S    Jun05  0:00 -:0                 
root      1825  0.0  0.0  3588  848 ?        S    Jun05  0:00 dbus-launch --autolaunch 7fe7e600ddc510135f07324f00000036 --binary-syntax --close-stderr
root      1826  0.0  0.0  2560  728 ?        Ss  Jun05  0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      1834  0.0  0.0  17844  2888 ?        Sl  Jun05  0:00 /usr/sbin/console-kit-daemon --no-daemon
user  1904  0.0  0.0  2992  1456 ?        Ss  Jun05  0:00 /bin/sh /usr/bin/startkde
user  1955  0.0  0.0  3588  852 ?        S    Jun05  0:00 dbus-launch --sh-syntax --exit-with-session
user  1956  0.0  0.0  3284  1536 ?        Ss  Jun05  0:14 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      1963  0.0  0.0  1648  148 ?        S    Jun05  0:00 /usr/lib/kde4/libexec/start_kdeinit +kcminit_startup
user  1964  0.0  0.7  86100 32516 ?        Ss  Jun05  0:00 kdeinit4: kdeinit4 Running...                 
user  1965  0.0  0.7  88872 31612 ?        S    Jun05  0:00 kdeinit4: klauncher [kdeinit] --fd=9         
user  1967  0.0  0.9 116436 39952 ?        S    Jun05  0:01 kdeinit4: kded4 [kdeinit]                     
user  1969  0.0  0.0  3044  1248 ?        S    Jun05  0:00 /usr/libexec/gam_server
user  1976  0.0  0.0  1788  368 ?        S    Jun05  0:00 kwrapper4 ksmserver
user  1977  0.0  0.8 117952 34580 ?        Sl  Jun05  0:00 kdeinit4: ksmserver [kdeinit]                 
user  1979  6.7  1.5 325980 65704 ?        Rl  Jun05 100:45 kwin -session 10c9cf726b000127563839500000021660000_1275794515_171504
user  1981  0.0  0.8 108920 35060 ?        S    Jun05  0:00 kdeinit4: kglobalaccel [kdeinit]             
user  1984  0.0  0.5 150060 22388 ?        Sl  Jun05  0:02 /usr/bin/knotify4
user  1989  0.0  0.8 107924 33692 ?        S    Jun05  0:00 kdeinit4: kaccess [kdeinit]                   
user  2001  0.0  1.1 295844 49724 ?        S    Jun05  0:08 kdeinit4: krunner [kdeinit]                   
user  2017  0.0  0.4  73232 19812 ?        Sl  Jun05  0:00 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1 -session 10c9cf726b000127563840600000021660011_1275794515_122792
root      2020  0.0  0.0  5844  3452 ?        S    Jun05  0:00 /usr/libexec/polkitd
user  2021  0.0  1.0 271464 41512 ?        S    Jun05  0:00 kdeinit4: kmix [kdeinit] -session 10c9cf726b000127563946200000031110009_1275794515_122793
user  2030  0.0  0.4  28932 18196 ?        S    Jun05  0:00 /usr/bin/python /usr/bin/blueman-applet
user  2033  0.0  0.8  95564 35144 ?        S    Jun05  0:01 python /usr/bin/printer-applet
user  2039  0.0  0.9 112884 37656 ?        S    Jun05  0:00 kdeinit4: klipper [kdeinit]                   
user  2054  0.0  0.4  87316 18960 ?        S    Jun05  0:00 /usr/bin/korgac -icon korgac
user  2068  0.0  0.1  21668  4820 ?        S    Jun05  0:00 /usr/bin/obex-data-server --no-daemon
user  2077  0.0  0.7 115884 32080 ?        Sl  Jun05  0:52 konsole -e /bin/bash -l
user  2079  0.0  0.0  3320  1852 pts/1    Ss  Jun05  0:00 /bin/bash -l
user  2981  0.0  0.0  3320  1852 pts/2    Ss  Jun05  0:00 /bin/bash -l
root      3062  0.0  0.0  3688  2204 pts/2    S+  Jun05  0:00 -su
user  5537  1.3  0.6  78324 28504 ?        Sl  Jun05  18:56 /usr/bin/xmms
user  6848  0.0  1.3 135004 55868 ?        S    00:59  0:00 kdeinit4: konqueror [kdeinit] --silent       
user  6865  0.0  0.0  2984  1416 ?        S    00:59  0:00 /bin/sh /usr/bin/firefox
user  6878  0.0  0.0  3032  1476 ?        S    00:59  0:00 /bin/sh /usr/lib/firefox-3.6.3/run-mozilla.sh /usr/lib/firefox-3.6.3/firefox-bin
user  6882  4.0  3.0 391536 126492 ?      Rl  00:59  53:34 /usr/lib/firefox-3.6.3/firefox-bin
user  6888  0.0  0.0  4596  2504 ?        S    00:59  0:00 /usr/libexec/gconfd-2
user 17894  0.0  0.7  86768 30192 ?        S    15:17  0:00 kdeinit4: kio_http_cache_cleaner [kdeinit]   
user 17898  0.0  0.8 108168 34256 ?        S    15:17  0:00 kdeinit4: kwalletd [kdeinit]                 
root    30622  0.0  0.0  3724  892 pts/2    S    22:12  0:00 dbus-launch --autolaunch 7fe7e600ddc510135f07324f00000036 --binary-syntax --close-stderr
root    30623  0.0  0.0  2560  736 ?        Ss  22:12  0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
user 30897  0.0  0.7  88868 30724 ?        S    22:45  0:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-user/klauncherMT1965.slave-socket local:/tmp/ksocket-user/kinfocenterP30896.slave-socket
user 30919  0.1  1.4 315288 61204 ?        S    22:49  0:02 plasma-desktop --nocrashhandler
user 31057  0.0  0.0  2684  968 pts/1    R+  23:10  0:00 ps aux


SeRi@lDiE 06-06-2010 11:18 PM

Quote:

Originally Posted by afreitascs (Post 3994943)
You have more than 4G of memory?

Thats not the issue and to answer your question yes I do have 4GB of RAM and it does not matter if I have just 4GB of ram and using the hugemem64... I will be upgrading very soon to 8GB thats why I am using the hugemem64.

I all ready compiled my new kernel to support hugemem64 and is all working the issue I am having is that my memory is getting sucked all to hell :)

T3slider 06-06-2010 11:24 PM

Well your post above shows normal memory usage (excluding cache, only 503M of memory is being used). If it craps out again and uses swap, post the output of the same commands.

SeRi@lDiE 06-07-2010 08:21 AM

Thank you all for the help.

As soon as it starts swapping out ill post back.

Thanks!

sycamorex 06-07-2010 08:28 AM

Why do you have so much swap space anyway? My laptop running Slackware64 13.0 with 4GB of RAM had 1GB swap. I noticed that it never used it though, so in Slackware 13.1 I got rid of swap. I guess it all depends on what you do with it.

disturbed1 06-07-2010 09:08 AM

Quote:

Originally Posted by sycamorex (Post 3995343)
Why do you have so much swap space anyway? My laptop running Slackware64 13.0 with 4GB of RAM had 1GB swap. I noticed that it never used it though, so in Slackware 13.1 I got rid of swap. I guess it all depends on what you do with it.

Good luck with hibernation :)
On our laptops I keep the swap partition just over RAM size. On point though, the OP stated he would eventually upgrade the RAM to 8GiB,
if he plans to hibernate, that's in line with what most docs say.

I'll reserve my opinion about needing that much RAM on a 32bit OS, not my system ;) Hopefully the OP has read the docs and disclaimers on using CONFIG_HIGHMEM64G on a 32bit system.
http://lkml.org/lkml/2007/11/15/423

sycamorex 06-07-2010 09:41 AM

Quote:

Originally Posted by disturbed1 (Post 3995387)
Good luck with hibernation :)

I forgot about that. It's probably because I never use this feature.

SeRi@lDiE 06-07-2010 11:23 AM

Quote:

Originally Posted by disturbed1 (Post 3995387)
Good luck with hibernation :)
On our laptops I keep the swap partition just over RAM size. On point though, the OP stated he would eventually upgrade the RAM to 8GiB,
if he plans to hibernate, that's in line with what most docs say.

I'll reserve my opinion about needing that much RAM on a 32bit OS, not my system ;) Hopefully the OP has read the docs and disclaimers on using CONFIG_HIGHMEM64G on a 32bit system.
http://lkml.org/lkml/2007/11/15/423

Thats not a disclaimer is more of an opinion... Thanks though... I have been using PAE - HUGEMEM for a long time now with now issues.
Maybe for now I should try HUGEMEM4 to see how it runs till I upgrade to 8GB of RAM.

And as for the swap question... It has been best practice for many years to use double your RAM for swap. I use 9GB just for the hell of it but it should be 8.

Thank You.


All times are GMT -5. The time now is 10:30 PM.