LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2008, 07:32 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
Free Memory????


I need a memory > 800. Now my system is consuming:
Code:
vjs@inp-vinodpon:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          1003        267        735          0         13         43
-/+ buffers/cache:        210        792
Swap:         1608         35       1572
The overall processes running:

Code:
vjs@inp-vinodpon:~$ ps -auxf
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         2  0.0  0.0      0     0 ?        S<   Apr16   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [migration/0]
root         4  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [watchdog/0]
root         6  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [migration/1]
root         7  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [watchdog/1]
root         9  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [events/0]
root        10  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [events/1]
root        11  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [khelper]
root        48  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [kblockd/0]
root        49  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [kblockd/1]
root        52  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [kacpid]
root        53  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [kacpi_notify]
root       132  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [kseriod]
root       172  0.0  0.0      0     0 ?        S    Apr16   0:00  \_ [pdflush]
root       173  0.0  0.0      0     0 ?        S    Apr16   0:02  \_ [pdflush]
root       174  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [kswapd0]
root       214  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [aio/0]
root       215  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [aio/1]
root      1519  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [ksuspend_usbd]
root      1520  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [khubd]
root      1583  0.0  0.0      0     0 ?        S<   Apr16   0:00  \_ [ata/0] syslog    4780  0.0  0.0   1936   716 ?        Ss   Apr16   0:00 /sbin/syslogd -u syslog
root      4839  0.0  0.0   1872   540 ?        S    Apr16   0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
klog      4842  0.0  0.1   3164  2028 ?        Ss   Apr16   0:00 /sbin/klogd -P /var/run/klogd/kmsg
107       4864  0.0  0.1   2696  1140 ?        Ss   Apr16   0:00 /usr/bin/dbus-daemon --system
root      4881  0.0  0.1  12884  2000 ?        Ssl  Apr16   0:00 /usr/sbin/NetworkManager --pid-file /var/run/NetworkManager/
root      4895  0.0  0.1   3528  1316 ?        Ss   Apr16   0:00 /usr/sbin/NetworkManagerDispatcher --pid-file /var/run/Netwo
root      4908  0.0  0.1   4100  1104 ?        Ss   Apr16   0:00 /usr/bin/system-tools-backends
root      4971  0.0  0.1   5312  1064 ?        Ss   Apr16   0:00 /usr/sbin/sshd
root      5956  0.0  0.2   8076  2632 ?        Ss   Apr16   0:00  \_ sshd: vjs [priv]
vjs       5959  0.0  0.1   8076  1708 ?        S    Apr16   0:16  |   \_ sshd: vjs@pts/0
vjs       5961  0.0  0.2   5632  3056 pts/0    Ss+  Apr16   0:00  |       \_ -bash
root      6513  0.0  0.2   8076  2404 ?        Ss   11:39   0:00  \_ sshd: vjs [priv]
vjs       6516  0.0  0.1   8224  1756 ?        S    11:39   0:00  |   \_ sshd: vjs@notty
vjs       6517  0.0  0.1   4728  1568 ?        Ss   11:39   0:00  |       \_ /usr/lib/openssh/sftp-server
root      6669  0.0  0.2   8076  2628 ?        Ss   14:34   0:00  \_ sshd: vjs [priv]
vjs       6672  0.0  0.1   8076  1704 ?        S    14:34   0:00  |   \_ sshd: vjs@pts/1
vjs       6673  0.0  0.2   5624  3016 pts/1    Ss+  14:34   0:00  |       \_ -bash
root      6800  0.0  0.2   8076  2620 ?        Ss   16:51   0:00  \_ sshd: vjs [priv]
vjs       6803  0.0  0.1   8076  1580 ?        S    16:52   0:00      \_ sshd: vjs@pts/2
vjs       6805  0.0  0.2   5624  3024 pts/2    Ss   16:52   0:00          \_ -bash
vjs       6838  0.0  0.0   2612   944 pts/2    R+   16:59   0:00              \_ ps -auxf
avahi     4995  0.0  0.1   2856  1448 ?        Ss   Apr16   0:00 avahi-daemon: running [inp-vinodpon.local]
avahi     4996  0.0  0.0   2760   460 ?        Ss   Apr16   0:00  \_ avahi-daemon: chroot helper
root      5038  0.0  0.2   5912  2136 ?        Ss   Apr16   0:00 /usr/sbin/cupsd
root      5125  0.0  0.1   5396  1720 ?        Ss   Apr16   0:00 /usr/lib/postfix/master
postfix   5638  0.0  0.1   5444  1684 ?        S    Apr16   0:00  \_ qmgr -l -t fifo -u
postfix   6795  0.0  0.1   5404  1636 ?        S    16:09   0:00  \_ pickup -l -t fifo -u -c
root      5191  0.0  0.0   2020   884 ?        Ss   Apr16   0:03 /usr/sbin/dhcdbd --system
dhcp      5431  0.0  0.1   2436  1200 ?        S    Apr16   0:00  \_ /sbin/dhclient -1 -lf /var/lib/dhcp3/dhclient.eth0.lease
110       5210  0.0  0.3   5980  3804 ?        Ss   Apr16   0:00 /usr/sbin/hald
root      5214  0.0  0.1   3344  1160 ?        S    Apr16   0:00  \_ hald-runner
110       5297  0.0  0.0   2204   900 ?        S    Apr16   0:00      \_ hald-addon-acpi: listening on acpid socket /var/run/
root      5306  0.0  0.1   3408  1140 ?        S    Apr16   0:00      \_ hald-addon-input: Listening on /dev/input/event2 /de
root      5317  0.0  0.1   3412  1152 ?        S    Apr16   0:02      \_ hald-addon-storage: polling /dev/scd0 (every 2 sec)
root      5213  0.0  0.2   8780  2272 ?        Ssl  Apr16   0:00 /usr/sbin/console-kit-daemon
root      5337  0.0  0.1   3164  1268 ?        Ss   Apr16   0:00 /usr/sbin/hcid -x -s
root      5365  0.0  0.1   3012  1132 ?        S    Apr16   0:00  \_ /usr/lib/bluetooth/bluetoothd-service-input
root      5366  0.0  0.1   3076  1324 ?        S    Apr16   0:00  \_ /usr/lib/bluetooth/bluetoothd-service-audio
daemon    5469  0.0  0.0   1984   424 ?        Ss   Apr16   0:00 /usr/sbin/atd
root      5485  0.0  0.0   2108   884 ?        Ss   Apr16   0:00 /usr/sbin/cron
root      6424  0.0  0.2  14484  2692 ?        S    11:09   0:00 /usr/sbin/gdm
root      6430  0.0  0.5  11212  6104 tty9     Ss+  11:10   0:00  \_ /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xauth -
gdm       6448  0.0  2.2  33920 23140 ?        Ss   11:10   0:12  \_ /usr/lib/gdm/gdmgreeter
Is it possble to kill the processes without affecting the System main files.
 
Old 04-17-2008, 07:36 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
if you are running low on memory why is gdmgreeter running ?
I think you can close down X altogether and work on text based system (if the system is not going to serve any graphical purpose)
 
Old 04-17-2008, 07:45 AM   #3
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
I tried running :

#kill -9 6448 but again it goes displaying..
How I gonna kill that?
 
Old 04-17-2008, 11:31 AM   #4
czarr
Member
 
Registered: Apr 2008
Distribution: Arch
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by ajeetraina View Post
I tried running :

#kill -9 6448 but again it goes displaying..
How I gonna kill that?
it goes displaying what?


sudo kill 6448
 
Old 04-17-2008, 11:34 AM   #5
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Run "sudo /sbin/init 3" That should stop your graphical environment and give you a text login.

HTH

Forrest
 
Old 04-18-2008, 07:00 AM   #6
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
switch off unneeded background services

'gdmgreeter' seems to consume a lot of memory sometimes. Killing it will not help, it will be restarted. Maybe remove it from the system (don't know if possible, gnome might need it).

You can also check for many other services running in the background, that can be switched off completely. Keep only what is really needed.

Consider switching the X Window Manager to XFCE, needs less resources.

GWN

Last edited by marquardl; 05-01-2008 at 04:54 AM.
 
Old 04-19-2008, 01:13 PM   #7
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
Quote:
Originally Posted by ajeetraina View Post
I tried running :

#kill -9 6448 but again it goes displaying..
How I gonna kill that?
Try finding what is in the /etc/inittab
and if the GDM greeter is set to re-start in that runlevel, then, howmuch ever you kill it, it will get re-started

Try changing the runlevel to someother than the current (but not 0 or 6 )
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Free memory shrinking GoingMad Linux - Newbie 9 02-18-2007 11:32 PM
How to free up memory? arindom Linux - Newbie 4 12-29-2006 04:49 AM
Does free( ) immediatly free the memory? Rayven Programming 24 11-06-2006 03:24 AM
How much memory is really 'free'? robbiemorgan Linux - Newbie 4 09-19-2004 08:05 PM
free up unused memory im1crazyassmofo Linux - Hardware 1 01-20-2004 07:39 AM


All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration