memory troubles?

Ashley Benton meggalen at gmail.com
Mon Dec 17 17:52:08 UTC 2007


I think I found the command to display my memory usage but I don't
understand the difference between top and ps --user=root -f -u.
The two output are completely different and apparently the processes using
memory are root processes. How can I find out what they are excatly and if I
can stop them from running?
Any help would be appreciated
thanks
Meg

Top
Cpu(s):  4.3%us,  0.7%sy,  0.0%ni, 94.3%id,  0.0%wa,  0.0%hi,  0.7%si,
0.0%st
Mem:    515712k total,   504592k used,    11120k free,    14980k buffers
Swap:  1510068k total,    34744k used,  1475324k free,   203036k cached


james at james-desktop:~$ ps --user=root -f -u
Warning: bad ps syntax, perhaps a bogus '-'? See
http://procps.sf.net/faq.html
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      6958  0.4  6.2  43816 32288 ?        Ss   12:19   0:05
/usr/sbin/synap
root      4921  0.0  0.2   3092  1064 ?        S    10:31   0:00 hald-runner
root         2  0.0  0.0      0     0 ?        S<   10:31   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[migration]
root         4  0.0  0.0      0     0 ?        SN   10:31   0:00  \_
[ksoftirqd]
root         5  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[watchdog/]
root         6  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[events/0]
root         7  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[khelper]
root        26  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kblockd/0]
root        27  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kacpid]
root        28  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kacpi_not]
root       126  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kseriod]
root       149  0.0  0.0      0     0 ?        S    10:31   0:00  \_
[pdflush]
root       150  0.0  0.0      0     0 ?        S    10:31   0:00  \_
[pdflush]
root       151  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kswapd0]
root       203  0.0  0.0      0     0 ?        S<   10:31   0:00  \_ [aio/0]
root      2025  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[ksuspend_]
root      2026  0.0  0.0      0     0 ?        S<   10:31   0:00  \_ [khubd]
root      2052  0.0  0.0      0     0 ?        S<   10:31   0:00  \_ [ata/0]
root      2053  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[ata_aux]
root      2056  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[khpsbpkt]
root      2288  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[scsi_eh_0]
root      2289  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[usb-stora]
root      2334  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[knodemgrd]
root      2520  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kjournald]
root      3730  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kpsmoused]
root      4713  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[kondemand]
root      5745  0.0  0.0      0     0 ?        S<   10:31   0:00  \_
[krfcommd]
root         1  0.0  0.3   2952  1856 ?        Ss   10:31   0:01 /sbin/init
root      2798  0.0  0.2   3020  1368 ?        S<s  10:31   0:00 /sbin/udevd
--d
root      4487  0.0  0.1   1692   516 tty4     Ss+  10:31   0:00 /sbin/getty
384
root      4488  0.0  0.1   1692   516 tty5     Ss+  10:31   0:00 /sbin/getty
384
root      4492  0.0  0.1   1696   516 tty2     Ss+  10:31   0:00 /sbin/getty
384
root      4493  0.0  0.1   1696   520 tty3     Ss+  10:31   0:00 /sbin/getty
384
root      4494  0.0  0.1   1696   516 tty1     Ss+  10:31   0:00 /sbin/getty
384
root      4495  0.0  0.0   1692   512 tty6     Ss+  10:31   0:00 /sbin/getty
384
root      4668  0.0  0.2   2432  1320 ?        Ss   10:31   0:00
/usr/sbin/acpid
root      4834  0.0  0.1   1832   528 ?        S    10:31   0:00 /bin/dd bs
1 if
root      4873  0.0  0.3  12556  2044 ?        Ssl  10:31   0:00
/usr/sbin/Netwo
root      4887  0.0  0.2   3280  1284 ?        Ss   10:31   0:00
/usr/sbin/Netwo
root      4900  0.0  0.1   3084   812 ?        Ss   10:31   0:00
/usr/bin/system
root      4901  0.0  0.2   2772  1252 ?        S    10:31   0:00  \_
dbus-daemon
root      5009  0.0  0.4   5800  2272 ?        Ss   10:31   0:00
/usr/sbin/cupsd
root      5592  0.0  0.4   7504  2128 ?        Ssl  10:31   0:00
/usr/sbin/conso
root      5708  0.0  0.1   1996   900 ?        Ss   10:31   0:00
/usr/sbin/dhcdb
root      5728  0.0  0.2   2920  1180 ?        Ss   10:31   0:00
/usr/sbin/hcid
root      5739  0.0  0.2   2836  1208 ?        S    10:31   0:00  \_
/usr/lib/bl
root      5742  0.0  0.1   2768   980 ?        S    10:31   0:00  \_
/usr/lib/bl
root      5781  0.0  0.3  13100  1612 ?        Ss   10:31   0:00
/usr/sbin/gdm
root      5782  0.0  0.5  13592  2844 ?        S    10:31   0:00  \_
/usr/sbin/g
root      5789  1.4  7.0  43032 36120 tty7     SLs+ 10:31   1:51      \_
/usr/bi
root      5861  0.0  0.1   2336   908 ?        Ss   10:31   0:00
/usr/sbin/cron



On Dec 17, 2007 12:12 PM, Ashley Benton <meggalen at gmail.com> wrote:

> Thanks,
> With df -h
> filesystem     size      used       avail    used%    mounted on
>
> /dev/hda3       345G    5.1 G     331G      2%          /
> varrun            252M    100K      252M      1%          /var/run
> varlock          252M          0      252M       0%          /var/lock
> udev              252M    100K      252M       1%         /dev/
> devshm         252M          0      252M       0%          /dev/shm
> lrm                252M     34M      218M      14%
> /lib/modules/2.66.22-14-generic/volatile
>
> Yes apparently home and everything else has a lot of free space, do you
> have any idea of what is using the memory? everything is closed except top
> and one terminal, and I have no idea where to look. I have the desktop
> effects enables but compiz-real is only using 4.4% MEM and 0.2 or 0.3 CPU.
>
> Thanks
> Meg
>
>
> On Dec 17, 2007 11:39 AM, Callum Scott <scott.callum at gmail.com> wrote:
>
> > Hi Ashley
> >
> > df -h will give you a more accurate picture of your usage.  I would
> > guess that /home  loads of free space.
> >
> >
> > Cheers
> > callum
> >
> > On Dec 17, 2007 3:59 PM, Ashley Benton < meggalen at gmail.com> wrote:
> >
> > > Hi
> > > I reinstalled windows on my computer for my son and now I am
> > > reinstalling Ubuntu 7.10 but I seem to have a memory trouble.
> > > It is what I read when I use top
> > > tasks 106 total, 3 running, 103 sleeping, 0 stopped, 0 zombie
> > > CPU (s) 0.3%us, 0.3%sy, 0.0% ni, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
> > > Mem:  515712k total,  476224k used, 39488k free 29392k buffers
> > > Swap:  1510068k total, 20540k used, 1489528 free, 195212 cached
> > >
> > > When I open the disk usage analyser it writes total flisystem capacity
> > > 353.9GB (Used 5.1 GB, available 348.8 GB)
> > > / 100% 4.9GB 19 items
> > >   usr 69.8% 3.4GB 10 items
> > >
> > > From what I understand my / is full and usr almost full but where are
> > > the 348.8 GB that are still free?
> > > Internet is unplug so I am sure that has nothing to do with it and I
> > > have no idea what that mean or what I did wrong.
> > > Any help would be welcome
> > > Thank you
> > > Meg
> > >
> > > --
> > > ubuntu-users mailing list
> > > ubuntu-users at lists.ubuntu.com
> > > Modify settings or unsubscribe at:
> > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> > >
> > >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071217/b05a15f9/attachment.html>


More information about the ubuntu-users mailing list