Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I realized that the contents of /proc/ pid for my rhel4 & 5 servers are all 0 bytes. I am expecting there to have information on the process ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    1

    query on /proc/pid

    Hi all,
    I realized that the contents of /proc/pid for my rhel4 & 5 servers are all 0 bytes. I am expecting there to have information on the process memory usage etc. Why is it that all these information are not reflected?

    For example:
    [root@pss1devwls1d 1]# ls -al
    total 0
    dr-xr-xr-x 3 root root 0 May 17 17:34 .
    dr-xr-xr-x 1054 root root 0 May 18 01:34 ..
    dr-xr-xr-x 2 root root 0 Aug 5 10:04 attr
    -r-------- 1 root root 0 Aug 5 10:18 auxv
    -r--r--r-- 1 root root 0 Aug 5 10:10 cmdline
    -rw-r--r-- 1 root root 0 Aug 5 10:18 coredump_filter
    lrwxrwxrwx 1 root root 0 Aug 5 10:18 cwd -> /
    -r-------- 1 root root 0 Aug 5 10:10 environ
    lrwxrwxrwx 1 root root 0 Aug 5 10:18 exe -> /sbin/init
    dr-x------ 2 root root 0 Aug 5 10:04 fd
    -r--r--r-- 1 root root 0 Aug 5 10:18 io
    -r-------- 1 root root 0 Aug 5 10:18 limits
    -rw-r--r-- 1 root root 0 Aug 5 10:18 loginuid
    -r--r--r-- 1 root root 0 Aug 5 10:18 maps
    -rw------- 1 root root 0 Aug 5 10:18 mem
    -r--r--r-- 1 root root 0 Aug 5 10:18 mounts
    -r-------- 1 root root 0 Aug 5 10:18 mountstats
    -r--r--r-- 1 root root 0 Aug 5 10:18 numa_maps
    lrwxrwxrwx 1 root root 0 Aug 5 10:18 root -> /
    -r-------- 1 root root 0 Aug 5 10:18 smaps
    -r--r--r-- 1 root root 0 Aug 5 10:10 stat
    -r--r--r-- 1 root root 0 Aug 5 10:18 statm
    -r--r--r-- 1 root root 0 Aug 5 10:10 status
    dr-xr-xr-x 3 root root 0 Aug 5 10:04 task
    -r--r--r-- 1 root root 0 Aug 5 10:18 wchan
    [root@pss1devwls1d 1]# pwd
    /proc/1

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Try the ps command for memory usage.
    Code:
    ps -AH v
    or
    Code:
    ps -AH v --headers
    For headers to be placed at the top of each page.
    You'll need to google for what the headers mean but RSS is resident memory

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...