LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-09-2009, 02:20 AM   #1
LilyHan
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
swap usage different between RHEL 5.2 and RHEL 5.


The sleep job's swap usage is very different on RHEL5.2 and others, why?

>cat /etc/*release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
> sleep 333 &
[4] 4285
> cat /proc/4285/stat |awk '{print $23}'
62341120
^^^^^^^^

> cat /etc/*release
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
> sleep 3333 &
[2] 26046
> cat /proc/26046/stat | awk '{print $23}'
5533696

Thanks!
Lily.
 
Old 08-01-2009, 07:09 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,671
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
You mean between RHEL 4 U5 and RHEL 5 U2. I'd say the major release versions are different enough in kernel architecture (2.6.9-something vs 2.6.18) and userland improvement to make up for that. I don't run 4 so on the left hand side is Centos-3, right is Centos-5. You see the process on 5 is leaner:
Code:
Virtual memory size: 4096 KB                                  | Virtual memory size: 3708 KB
Resident set size: 484 KB                                     | Resident set size: 460 KB
Current real memory limit: 4194303 KB                           Current real memory limit: 4194303 KB
Code segment: 0x08048000 - 0x0804ab44 (10 KB)                 | Code segment: 0x08048000 - 0x0804bb18 (14 KB)
Data segment size: 448 KB                                     | Data segment size: 156 KB
Stack size: 8 KB                                              | Stack size: 84 KB
Library segment size: 1536 KB                                 | Library segment size: 1376 KB
Currently mapped memory regions:                                Currently mapped memory regions:
   Address           Perm Offset   Dev   Inode                     Address           Perm Offset   Dev   Inode
  ------------------------------------------------                ------------------------------------------------
   08048000-0804b000 r-xp 00000000 03:07 46953      /bin/slee |    0049b000-0049c000 r-xp 0049b000 00:00 0          [vdso]
   0804b000-0804d000 rw-p 00002000 03:07 46953      /bin/slee |    0051a000-00534000 r-xp 00000000 08:03 159725     /lib/ld-2
   0804d000-0806e000 rwxp 00000000 00:00 0                    |    00534000-00535000 r-xp 00019000 08:03 159725     /lib/ld-2
   40006000-40007000 rw-p 00000000 00:00 0                    |    00535000-00536000 rwxp 0001a000 08:03 159725     /lib/ld-2
   40007000-40207000 r--p 00000000 03:05 32293      /usr/lib/ |    00538000-00676000 r-xp 00000000 08:03 159729     /lib/libc
   4a457000-4a46c000 r-xp 00000000 03:07 42889      /lib/ld-2 |    00676000-00678000 r-xp 0013e000 08:03 159729     /lib/libc
   4a46c000-4a46d000 rw-p 00015000 03:07 42889      /lib/ld-2 |    00678000-00679000 rwxp 00140000 08:03 159729     /lib/libc
   4a46f000-4a5a3000 r-xp 00000000 03:07 12447      /lib/i686 |    00679000-0067c000 rwxp 00679000 00:00 0 
   4a5a3000-4a5a6000 rw-p 00134000 03:07 12447      /lib/i686 |    08048000-0804c000 r-xp 00000000 08:03 191439     /bin/slee
   4a5a6000-4a5a9000 rw-p 00000000 00:00 0                    |    0804c000-0804e000 rw-p 00003000 08:03 191439     /bin/slee
   4a5d4000-4a5f5000 r-xp 00000000 03:07 12449      /lib/i686 |    09820000-09841000 rw-p 09820000 00:00 0          [heap]
   4a5f5000-4a5f6000 rw-p 00021000 03:07 12449      /lib/i686 |    b7d5a000-b7f5a000 r--p 00000000 08:05 165953     /usr/lib/
   4a670000-4a67e000 r-xp 00000000 03:07 12448      /lib/i686 |    b7f5a000-b7f5c000 rw-p b7f5a000 00:00 0 
   4a67e000-4a681000 rw-p 0000e000 03:07 12448      /lib/i686 |    bfa41000-bfa56000 rw-p bffea000 00:00 0          [stack]
   4a681000-4a6c1000 rw-p 00000000 00:00 0                    | Used stack: 0xbfa54b68 - 0xbfa54cc0 (344 bytes) [esp == 0xbfa
   4a849000-4a851000 r-xp 00000000 03:07 12450      /lib/i686 | Current instruction is at: 0x0049b402
   4a851000-4a852000 rw-p 00007000 03:07 12450      /lib/i686 <
   4a852000-4a85d000 rw-p 00000000 00:00 0                    <
   bfffe000-c0000000 rwxp fffff000 00:00 0                    <
Used stack: 0xbffff8ec - 0xbffffa00 (276 bytes) [esp == 0xbff <
Current instruction is at: 0x4a51a245                         <
 
  


Reply

Tags
rhel52, swap


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
proxy usage for rhel 4 johnkalikavunkal Red Hat 3 08-01-2008 11:09 PM
Swap hard drives instead of RHEL installs? djeikyb Linux - Newbie 4 12-20-2007 12:26 PM
heavy cpu usage on RHEL wolfperkins Linux - Desktop 1 10-22-2007 10:52 AM
Can't reboot RHEL WS4 - swap space issue? genemob Red Hat 3 01-31-2007 11:40 AM
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 07:30 AM


All times are GMT -5. The time now is 09:40 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration