Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is in context of AIX (5.3) On what basis does space gets allocated for whatever needs to be stored under the virtual filesystem /proc

Does the OS grabs space from / ? For instance I have :

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           0.25      0.08   70%    10983    38% /
/proc                 -         -    -         -     -  /proc

So what will happen if my / gets used up to 99%? Where will proc get its space?

Or do I have it all wrong ? Is /proc just a representation of server memory ?

share|improve this question
up vote 6 down vote accepted

Or do I have it all wrong ? Is /proc just a representation of server memory ?

Yes :) It's server memory, kernel to be specific.

/proc is filesystem driver that sees kernel memory structures instead of disk. It never uses disk space, well, other than the device driver on disk.

It's a way of making kernel data structures easily readable by user level code. It uses the filesystem, the "everything is a file" metaphor that UNIX helped pioneer. Then you can use the same tools (syscalls, command line tools) to read and write this kernel data that you normally use, instead of specific commands or complicated calls like ioctl().

share|improve this answer

I have no AIX experience, but all every OS I used (BSD, Linux) /proc is a virtual filesystem. It does not use any real disk space.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .