Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Memory allocating or system slow down
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bash[DevNull]
Guru
Guru


Joined: 10 Oct 2003
Posts: 333

PostPosted: Fri Jan 09, 2004 5:56 am    Post subject: Memory allocating or system slow down Reply with quote

Hello All,

At system startup i have the same with my memory:

Code:
ps aux; free
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  4.6  0.1  1440  476 ?        S    08:42   0:08 init
root         2  0.0  0.0     0    0 ?        SW   08:42   0:00 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  08:42   0:00 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   08:42   0:00 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   08:42   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   08:42   0:00 [kupdated]
root         7  0.0  0.0     0    0 ?        SW   08:42   0:00 [kjournald]
root       157  0.0  0.4  1928  992 ?        S    08:42   0:00 /sbin/devfsd /dev
root       375  0.0  0.0     0    0 ?        SW   08:42   0:00 [khubd]
root      1671  0.0  0.2  1484  584 ?        S    08:42   0:00 /usr/sbin/syslogd -m 0
root      1790  0.0  0.2  1440  520 ?        S    08:42   0:00 /usr/sbin/acpid -c /etc/acpi/events
root      2079  0.0  0.2  1616  640 ?        S    08:42   0:00 /usr/sbin/automount --timeout 5 /mnt/auto file /etc/autofs/auto.misc
root      2097  0.0  0.2  1616  640 ?        S    08:42   0:00 /usr/sbin/automount --timeout 120 /mnt/devnull file /etc/autofs/auto.devnull
root      2203  0.0  0.5  2180 1232 ?        S    08:42   0:00 /usr/sbin/klogd -c 3 -2
nobody    2569  0.0  1.9 14012 4792 ?        S    08:42   0:00 dictd 1.8.0: 0/0 
root      2977  0.0  0.2  1624  644 ?        S    08:43   0:00 /usr/sbin/cron
root      3058  0.0  0.1  1284  276 ?        S    08:43   0:00 /opt/vmware/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vmnet0 eth0
root      3089  0.0  0.1  1280  272 ?        S    08:43   0:00 /opt/vmware/bin/vmnet-netifup -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8
root      3099  0.0  0.1  1512  468 ?        S    08:43   0:00 /opt/vmware/bin/vmnet-natd -d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/vmware/vmnet8/nat/nat.conf
root      3156  0.0  0.2  1596  648 ?        S    08:43   0:00 /opt/vmware/bin/vmnet-dhcpd -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
root      3368  0.0  0.2  1476  572 vc/1     S    08:43   0:00 /sbin/agetty 38400 tty1 linux
root      3369  0.0  0.2  1476  572 vc/2     S    08:43   0:00 /sbin/agetty 38400 tty2 linux
root      3370  0.0  0.4  2240 1196 ?        S    08:43   0:00 login -- bash     
bash      3421  0.4  0.7  5024 1888 vc/3     S    08:44   0:00 -bash
bash      3441  0.0  0.3  2408  804 vc/3     R    08:45   0:00 ps aux
             total       used       free     shared    buffers     cached
Mem:        240868      28272     212596          0       2912      15168
-/+ buffers/cache:      10192     230676
Swap:       401616          0     401616


But after hard-working (mozilla, gimp and etc.) my memory leak out. So i have (when i am exited from all apps: X, mozilla and etc)

Code:
ps aux; free
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1440   80 ?        S    Jan06   0:08 init
root         2  0.0  0.0     0    0 ?        SW   Jan06   0:01 [keventd]
root         3  0.0  0.0     0    0 ?        SWN  Jan06   0:01 [ksoftirqd_CPU0]
root         4  0.0  0.0     0    0 ?        SW   Jan06   0:16 [kswapd]
root         5  0.0  0.0     0    0 ?        SW   Jan06   0:00 [bdflush]
root         6  0.0  0.0     0    0 ?        SW   Jan06   0:00 [kupdated]
root         7  0.0  0.0     0    0 ?        SW   Jan06   0:01 [kjournald]
root       157  0.0  0.1  1928  364 ?        S    Jan06   0:00 /sbin/devfsd /dev
root       376  0.0  0.0     0    0 ?        SW   Jan06   0:00 [khubd]
root      1584  0.0  0.0  1484  180 ?        S    Jan06   0:00 /usr/sbin/syslogd -m 0
root      1687  0.0  0.0  1440    4 ?        S    Jan06   0:00 /usr/sbin/acpid -c /etc/acpi/events
root      2011  0.0  0.0  1616  100 ?        S    Jan06   0:00 /usr/sbin/automount --timeout 5 /mnt/auto file /etc/autofs/auto.misc
root      2053  0.0  0.0  1616  100 ?        S    Jan06   0:00 /usr/sbin/automount --timeout 120 /mnt/devnull file /etc/autofs/auto.devnull
root      2135  0.0  0.0  2180    4 ?        S    Jan06   0:00 /usr/sbin/klogd -c 3 -2
nobody    2501  0.0  0.0 14012    4 ?        S    Jan06   0:00 dictd 1.8.0: 1/5 
root      2890  0.0  0.0  1624  104 ?        S    Jan06   0:00 /usr/sbin/cron
root      2958  0.0  0.0  1284    4 ?        S    Jan06   0:00 /opt/vmware/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vmnet0 eth0
root      2988  0.0  0.0  1564    4 ?        S    Jan06   0:00 /opt/vmware/bin/vmnet-natd -d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/vmware/vmnet8/nat/nat.conf
root      3256  0.0  0.0  1476    4 vc/1     S    Jan06   0:00 /sbin/agetty 38400 tty1 linux
root      3257  0.0  0.0  1476    4 vc/2     S    Jan06   0:00 /sbin/agetty 38400 tty2 linux
root      3258  0.0  0.0  2240    4 ?        S    Jan06   0:00 login -- bash     
bash      3309  0.0  0.4  5024 1180 vc/3     S    Jan06   0:00 -bash
root      3324  0.0  0.0  1280    4 ?        S    Jan06   0:00 /opt/vmware/bin/vmnet-netifup -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8
root      3338  0.0  0.0  1600    4 ?        S    Jan06   0:00 /opt/vmware/bin/vmnet-dhcpd -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
bash     15696  0.0  0.0  5864    4 ?        S    Jan08   0:00 smbmount //vx/video /home/bash/mnt/machine/
bash      2513  0.0  0.3  2408  804 vc/3     R    08:40   0:00 ps aux
             total       used       free     shared    buffers     cached
Mem:        240868     212536      28332          0       3360      46960
-/+ buffers/cache:     162216      78652
Swap:       401616       3964     397652


How you can see, no applications eat memory.

But i have big problems to work with apps. For example emerge work terrible slowly. It is all time work with SWAP and have many hdd IO. Why? How i can to cleanup my memory or how to speed up my system??
_________________
Biomechanical Artificial Sabotage Humanoid
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Fri Jan 09, 2004 11:22 am    Post subject: Reply with quote

I don't know if this helps you, but there is a GLSA regarding a security vulnerability.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200401-01
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
~ http://security.gentoo.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

~ Severity: High
~ Title: Linux kernel do_mremap() privilege escalation vulnerability
~ Date: January 08, 2004
~ Bugs: #37292, #37317
~ ID: 200401-01

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Fri Jan 09, 2004 11:33 am    Post subject: Reply with quote

I don't think the sec vuln is really applicable to this since it's to do with privilege escalation rather than memory leak.

What kernel are you running? Do you have anything strange in dmesg?
Back to top
View user's profile Send private message
Cosmin
Guru
Guru


Joined: 18 Dec 2003
Posts: 447
Location: Bucharest, Romania

PostPosted: Fri Jan 09, 2004 11:55 am    Post subject: Reply with quote

I run kernel 2.4.19, but I didn't encountered any problem (so far). The announcement addresses a security problem caused by faulty memory allocation. You can gain root using this, but there are other problems also. Perhaps you installed a buggy software recently that has this bug...
Back to top
View user's profile Send private message
Bash[DevNull]
Guru
Guru


Joined: 10 Oct 2003
Posts: 333

PostPosted: Sun Jan 11, 2004 3:59 pm    Post subject: Reply with quote

Cosmin wrote:
You can gain root using this, but there are other problems also.


You wrong :)

Linus wrote:
Can somebody tell me (in private) what the exploit is in the first place?


The thing is, I can see the VM getting confused and creating a zero-sized
vma, and I agree that it shouldn't do that. The fix is trivial. But I
don't see where the claimed privilege escalation comes from. A zero-sized
vma isn't ever going to be _useful_, since nothing will actually find it.


So yes, it creates some confusion in the VM layer, but it all seems
benign. It's clearly a bug, but where does the security problem come in?


Linus

http://lkml.org/lkml/2004/1/5/296
_________________
Biomechanical Artificial Sabotage Humanoid
Back to top
View user's profile Send private message
Bash[DevNull]
Guru
Guru


Joined: 10 Oct 2003
Posts: 333

PostPosted: Sun Jan 11, 2004 4:03 pm    Post subject: Reply with quote

fleed wrote:
I don't think the sec vuln is really applicable to this since it's to do with privilege escalation rather than memory leak.

What kernel are you running? Do you have anything strange in dmesg?


Hm! I found that problem in kernel and perhaps with hdparm.
With my old kernel 2.4.20-gentoo-r8 all work perhaps. But now i have strange error when hparm-service starting

Code:
Jan  9 08:43:02 blackhole kernel: hda: dma_timer_expiry: dma status == 0x61
Jan  9 08:43:12 blackhole kernel: hda: error waiting for DMA
Jan  9 08:43:12 blackhole kernel: hda: dma timeout retry: status=0x50 { DriveReady SeekComplete }

_________________
Biomechanical Artificial Sabotage Humanoid
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum