Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* about /proc
@ 1997-11-20  5:00 Vincent Huang
  1997-11-21  5:00 ` John Hascall
  1997-11-24  5:00 ` Doogie
  0 siblings, 2 replies; 4+ messages in thread
From: Vincent Huang @ 1997-11-20  5:00 UTC (permalink / raw)



Hello!


I use DU4.0B OS in my dec1000a server,
and I found one directory called "proc" in  root directory

somebody said that these files in  the  /proc directory means the total 
process running in this environment ,if this point of view is right.

here is my questions....

1). What does it mean about the size of one file in /proc directory ,
      the space of that process occuppied in RAM? or...?
2). why the usauge of /proc always to be 100%
3). the total size of these files in /proc equal to the size of RAM?
4). those process in swap space would also show up in /proc directory?


Thanks

Vincent Huang



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: about /proc
  1997-11-20  5:00 about /proc Vincent Huang
@ 1997-11-21  5:00 ` John Hascall
  1997-11-24  5:00 ` Doogie
  1 sibling, 0 replies; 4+ messages in thread
From: John Hascall @ 1997-11-21  5:00 UTC (permalink / raw)



Vincent Huang <vincent9@ms3.hinet.net> wrote:
}Hello!
}I use DU4.0B OS in my dec1000a server,
}and I found one directory called "proc" in  root directory

   If you do "man 4 proc" it'll explain a lot.

}somebody said that these files in  the  /proc directory means the total 
}process running in this environment ,if this point of view is right.
}here is my questions....
}1). What does it mean about the size of one file in /proc directory ,
}      the space of that process occuppied in RAM? or...?

     The "size" of the file is the size of the process's address space
     (and the filename is the pid).  Example:

lambda.cc> ls -l /proc/01314
-rw-------   1 root     system   8806400 Nov 21 01:22 /proc/01314
lambda.cc> ps l01314
  UID   PID  PPID  CP PRI  NI   VSZ  RSS WCHAN    S    TTY             TIME COM
    0  1314     1   0  42   0  800K   0K 6b8f98   U    ??           0:09.70 /sb


}2). why the usauge of /proc always to be 100%

     The proc filesystem is not real, it takes no actual space.
lambda.cc> df -k -t procfs
Filesystem  1024-blocks        Used   Available Capacity  Mounted on
/proc                 0           0           0   100%    /proc

     I'd have called 0 of 0 0%, but they called it 100%,
     but it makes little difference.

}3). the total size of these files in /proc equal to the size of RAM?

     No (see #1).

}4). those process in swap space would also show up in /proc directory?

     Yup.  All processes, even swapped ones:

lambda.cc> ps l15735
  UID   PID  PPID  CP PRI  NI   VSZ  RSS WCHAN    S    TTY             TIME COM
    0 15735     1   0  44   0  432K   0K ttyin    IW + console      0:00.06 /us
lambda.cc> ls -l /proc/15735
-rw-------   1 root     system   8642560 Nov 21 01:25 /proc/15735


John
-- 
John Hascall, Software Engr.        Shut up, be happy.  The conveniences you
ISU Computation Center              demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html  <-- the usual crud



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: about /proc
  1997-11-20  5:00 about /proc Vincent Huang
  1997-11-21  5:00 ` John Hascall
@ 1997-11-24  5:00 ` Doogie
  1997-11-25  5:00   ` Kevin Maguire
  1 sibling, 1 reply; 4+ messages in thread
From: Doogie @ 1997-11-24  5:00 UTC (permalink / raw)
  To: Vincent Huang


Vincent Huang wrote:
> 
> Hello!
> 
> I use DU4.0B OS in my dec1000a server,
> and I found one directory called "proc" in  root directory
> 
> somebody said that these files in  the  /proc directory means the total
> process running in this environment ,if this point of view is right.
> 
> here is my questions....
> 
> 1). What does it mean about the size of one file in /proc directory ,
>       the space of that process occuppied in RAM? or...?
> 2). why the usauge of /proc always to be 100%
> 3). the total size of these files in /proc equal to the size of RAM?
> 4). those process in swap space would also show up in /proc directory?
> 
> Thanks
> 
> Vincent Huang


There's a really good article on /proc in SunExpert this month (I read
it this morning).  I think their web site is www.sunexpert.com.  The
article will show you how to pull apart the files in the directory to
figure out what each process is doing.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: about /proc
  1997-11-24  5:00 ` Doogie
@ 1997-11-25  5:00   ` Kevin Maguire
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Maguire @ 1997-11-25  5:00 UTC (permalink / raw)



Doogie wrote:
## There's a really good article on /proc in SunExpert this month (I read
## it this morning).  I think their web site is www.sunexpert.com.  The
## article will show you how to pull apart the files in the directory to
## figure out what each process is doing.

The URL is http://www.cpg.com/se/ and as far as I can tell the
article is not online.

Kevin
-- 
                    \\\|///
                  \\  - -  //
                   (  @ @  )
+-----------------oOOo-(_)-oOOo---------------------+
| Kevin Maguire                Daresbury Laboratory |
| K.Maguire@dl.ac.uk                     Warrington |
| Tel: (01925) 603221                      Cheshire |
| Fax: (01925) 603634                United Kingdom |
+-------------------------Oooo----------------------+
                   oooO   (   )
                  (   )    ) /
                   \ (    (_/
                    \_)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1997-11-25  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-20  5:00 about /proc Vincent Huang
1997-11-21  5:00 ` John Hascall
1997-11-24  5:00 ` Doogie
1997-11-25  5:00   ` Kevin Maguire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox