LinuxQuestions.org
Review your favorite Linux distribution.
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 11-21-2008, 01:26 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
Linux Memory Management ??


I have RHEL System which is very slow in its processing.
Here is the top output:

Code:
top - 11:20:45 up 14 min,  1 user,  load average: 0.00, 0.02, 0.04
Tasks: 102 total,   1 running, 101 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0% us,  0.1% sy,  0.0% ni, 99.9% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   8164332k total,   854540k used,  7309792k free,    23616k buffers
Swap:  2031608k total,        0k used,  2031608k free,   299656k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 5549 root      16   0  6148 1016  772 R    0  0.0   0:00.02 top
    1 root      16   0  4752  552  460 S    0  0.0   0:00.87 init
    2 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1
    5 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
    6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/2
    7 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/2
    8 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/3
    9 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/3
   10 root       5 -10     0    0    0 S    0  0.0   0:00.00 events/0
   11 root       5 -10     0    0    0 S    0  0.0   0:00.00 events/1
   12 root       5 -10     0    0    0 S    0  0.0   0:00.00 events/2
   13 root       5 -10     0    0    0 S    0  0.0   0:00.03 events/3
   14 root       8 -10     0    0    0 S    0  0.0   0:00.00 khelper
   15 root      15 -10     0    0    0 S    0  0.0   0:00.00 kacpid
   82 root       5 -10     0    0    0 S    0  0.0   0:00.00 kblockd/0
   83 root       5 -10     0    0    0 S    0  0.0   0:00.00 kblockd/1
   84 root       5 -10     0    0    0 S    0  0.0   0:00.00 kblockd/2
   85 root       5 -10     0    0    0 S    0  0.0   0:00.00 kblockd/3
   86 root      15   0     0    0    0 S    0  0.0   0:00.12 khubd
  113 root      20   0     0    0    0 S    0  0.0   0:00.00 pdflush
  114 root      15   0     0    0    0 S    0  0.0   0:00.11 pdflush
  117 root      12 -10     0    0    0 S    0  0.0   0:00.00 aio/0
  118 root       5 -10     0    0    0 S    0  0.0   0:00.00 aio/1
  119 root       5 -10     0    0    0 S    0  0.0   0:00.00 aio/2
  120 root       5 -10     0    0    0 S    0  0.0   0:00.00 aio/3
  115 root      25   0     0    0    0 S    0  0.0   0:00.00 kswapd1
  116 root      25   0     0    0    0 S    0  0.0   0:00.00 kswapd0
  264 root      22   0     0    0    0 S    0  0.0   0:00.00 kseriod
  407 root       7 -10     0    0    0 S    0  0.0   0:00.00 kmirrord
  434 root      15   0     0    0    0 S    0  0.0   0:00.01 kjournald
 1599 root       6 -10  3604  452  364 S    0  0.0   0:00.01 udevd
 2656 root       6 -10     0    0    0 S    0  0.0   0:00.00 kauditd
 2856 root      19   0     0    0    0 S    0  0.0   0:00.00 kjournald
 2857 root      15   0     0    0    0 S    0  0.0   0:00.00 kjournald
 2858 root      19   0     0    0    0 S    0  0.0   0:00.00 kjournald
free -m
Code:
[root@143slave ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          7972        834       7138          0         23        292
-/+ buffers/cache:        518       7454
Swap:         1983          0       1983
ps -auxf | less
Code:
root      5513  0.0  0.0 53964 1556 pts/1    Ss   11:18   0:00      \_ -bash
root      5553  0.0  0.0  5440  860 pts/1    R+   11:21   0:00          \_ ps -auxf
root      3627  0.0  0.0  8712  800 ?        Ss   11:07   0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp       3640  0.0  0.0 18560 5296 ?        SLs  11:07   0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root      5510  0.0  0.0 18560 1532 ?        S    11:08   0:00  \_ ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root      3662  0.0  0.0 53184  248 ?        Ss   11:07   0:00 rpc.rquotad
root      3687  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3688  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3689  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3690  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3691  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3692  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3693  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3694  0.0  0.0     0    0 ?        S    11:07   0:00 [nfsd]
root      3696  0.0  0.0     0    0 ?        S    11:07   0:00 [lockd]
root      3697  0.0  0.0     0    0 ?        S    11:07   0:00 [rpciod]
root      3700  0.0  0.0  5852  284 ?        Ss   11:07   0:00 rpc.mountd
root      3730  0.0  0.0 34996 2228 ?        Ss   11:07   0:00 sendmail: accepting connections
smmsp     3738  0.0  0.0 27784 1900 ?        Ss   11:07   0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root      3749  0.0  0.0  4176  348 ?        Ss   11:07   0:00 gpm -m /dev/input/mice -t imps2
root      3759  0.0  0.0 57060  940 ?        Ss   11:07   0:00 crond
mysql     3766  0.0  0.7 1470724 57764 ?     Sl   11:07   0:00 mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid
xfs       3799  0.0  0.0 10228 1736 ?        Ss   11:07   0:00 xfs -droppriv -daemon
root      3809  0.0  0.0  2536  504 ?        SNs  11:07   0:00 anacron -s
root      3818  0.0  0.0  8912  420 ?        Ss   11:07   0:00 /usr/sbin/atd
dbus      3837  0.0  0.0  9644  788 ?        Ss   11:07   0:00 dbus-daemon-1 --system
root      3850  0.0  0.0  8992  932 ?        Ss   11:07   0:00 cups-config-daemon
root      3861  0.1  0.1 21216 8348 ?        Ss   11:07   0:01 hald
fsadmin   4120  0.1  0.4 2358544 37224 ?     Sl   11:07   0:01 /usr/java/jdk1.5.0_06/bin/orbd -ORBInitialPort 2050 -ORBInitia
fsadmin   4291  1.5  1.3 2430360 108120 ?    Sl   11:07   0:13 /usr/java/jdk1.5.0_06/bin/java -DTHIS=TOMCAT -DCFG_DIR=/home/f
fsadmin   4307  0.8  1.3 2410996 106944 ?    Sl   11:07   0:07 /usr/java/jdk1.5.0_06/bin/java -DTHIS=SMPPSender -Djava.util.p
fsadmin   4410  0.4  1.0 2386388 83764 ?     Sl   11:07   0:03 /usr/java/jdk1.5.0_06/bin/java -DTHIS=CDRLogger -Djava.util.pr
fsadmin   4412  1.1  1.5 2522016 130016 ?    Sl   11:07   0:09 /usr/java/jdk1.5.0_06/bin/java -DTHIS=FSCore -XX:MaxGCPauseMil
root      4700  0.0  0.0  2524  404 tty1     Ss+  11:07   0:00 /sbin/mingetty tty1
root      4701  0.0  0.0  2524  404 tty2     Ss+  11:07   0:00 /sbin/mingetty tty2
root      4702  0.0  0.0  2524  404 tty3     Ss+  11:07   0:00 /sbin/mingetty tty3
root      4706  0.0  0.0  2524  404 tty4     Ss+  11:07   0:00 /sbin/mingetty tty4
root      4714  0.0  0.0  2524  404 tty5     Ss+  11:07   0:00 /sbin/mingetty tty5
root      4716  0.0  0.0  2524  404 tty6     Ss+  11:07   0:00 /sbin/mingetty tty6
root      4717  0.0  0.0 90132 2900 ?        Ss   11:07   0:00 /usr/bin/gdm-binary -nodaemon
root      5392  0.0  0.0 104152 2496 ?       S    11:07   0:00  \_ /usr/bin/gdm-binary -nodaemon
root      5409  0.0  0.1 24580 11824 ?       S    11:07   0:00      \_ /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -
gdm       5509  0.0  0.1 126696 11300 ?      Ss   11:08   0:00      \_ /usr/bin/gdmgreeter

Any idea why its showing slow speed?
 
Old 11-21-2008, 02:28 AM   #2
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
Quote:
Originally Posted by your_shadow03 View Post
ps -auxf | less
Code:
...
root      3759  0.0  0.0 57060  940 ?        Ss   11:07   0:00 crond
mysql     3766  0.0  0.7 1470724 57764 ?     Sl   11:07   0:00 mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid
xfs       3799  0.0  0.0 10228 1736 ?        Ss   11:07   0:00 xfs -droppriv -daemon
...
root      3861  0.1  0.1 21216 8348 ?        Ss   11:07   0:01 hald
fsadmin   4120  0.1  0.4 2358544 37224 ?     Sl   11:07   0:01 /usr/java/jdk1.5.0_06/bin/orbd -ORBInitialPort 2050 -ORBInitia
fsadmin   4291  1.5  1.3 2430360 108120 ?    Sl   11:07   0:13 /usr/java/jdk1.5.0_06/bin/java -DTHIS=TOMCAT -DCFG_DIR=/home/f
fsadmin   4307  0.8  1.3 2410996 106944 ?    Sl   11:07   0:07 /usr/java/jdk1.5.0_06/bin/java -DTHIS=SMPPSender -Djava.util.p
fsadmin   4410  0.4  1.0 2386388 83764 ?     Sl   11:07   0:03 /usr/java/jdk1.5.0_06/bin/java -DTHIS=CDRLogger -Djava.util.pr
fsadmin   4412  1.1  1.5 2522016 130016 ?    Sl   11:07   0:09 /usr/java/jdk1.5.0_06/bin/java -DTHIS=FSCore -XX:MaxGCPauseMil
...
root      4717  0.0  0.0 90132 2900 ?        Ss   11:07   0:00 /usr/bin/gdm-binary -nodaemon
root      5392  0.0  0.0 104152 2496 ?       S    11:07   0:00  \_ /usr/bin/gdm-binary -nodaemon
root      5409  0.0  0.1 24580 11824 ?       S    11:07   0:00      \_ /usr/X11R6/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth -
gdm       5509  0.0  0.1 126696 11300 ?      Ss   11:08   0:00      \_ /usr/bin/gdmgreeter

Any idea why its showing slow speed?
I would say the highlighted processes are to blame. The red numbers are memory usage. When the computer is accually being used, those processes, especially the last four, will use much more CPU time.
 
Old 11-21-2008, 03:44 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I tried adding more space to Swap Space but it dint help.
 
Old 11-21-2008, 03:56 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,050

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
What makes you think it's a memory problem ?.
 
Old 11-21-2008, 03:59 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
If Speed is Slow then probably on one's mind Memory Factor strikes first
 
Old 11-21-2008, 05:13 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,050

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Very poor analysis - I see no evidence of a memory problem. On the contrary, the system appears totally unconstrained.
With a system like that I trust you are running something like RHEL - in which case you should have sar running. I think you should spend some time investigating its data to try to ascertain where the problem (if any) may lie.
 
Old 11-21-2008, 06:17 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
According to both ps and top, memory is mostly empty. And even if it was full -which it isn't- it would still be fine, as long as you are not hitting the swap too hard. So I'd look elsewhere.

your_shadow03, try to describe the actual symptoms. Which apps are slow? In which way are they slow? Does it happen to text mode applications outside X or into an xterm? Are there cpu peaks here and there? Try to describe the issue a bit better, since there's really nothing abnormal in top nor ps.
 
  


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
[Help!]linux,memory management,c/c++ kefeng.chen Programming 15 12-16-2006 07:43 PM
Linux memory management jrd Linux - Newbie 5 04-24-2006 06:51 PM
Regarding Memory management in Linux alfredhitchcock Programming 4 09-07-2004 04:20 AM
Linux Memory Management beatlelane Red Hat 5 10-04-2003 01:39 AM
linux memory management kb8doa Linux - Newbie 1 06-18-2003 11:36 AM


All times are GMT -5. The time now is 05:29 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