Dear QNXers
I am developing a QNX application using RTP 6.1 to host the development. I
noticed that a make failed because of lack of disk space - no room to create
the .o file. This was a great surprise because my application is not large
and I have a 600 MB partition to house RTP. On looking at the problem I
found a number of large files whose purpose I cannot understand. So my
question is:
Can anyone explain the purpose of the directories with numeric names in
/proc?
Each directory contains a file called As, which is often several 100kbytes.
If they are rubbish how can I delete them safely?
Any advice would be welcome.
–
Regards
Martin Lloyd
Farside Technology
Home office (most direct), Tel(+ 44)(0) 118 957 4144
Fax (+44)(0)870 0529957
Company Tel: (+44) 175 352 5972
Company Fax (+44) 175 351 1922
Can anyone explain the purpose of the directories with numeric names in
/proc?
/proc is the virtual filesystem for process information. The numeric file
names are PIDs of processes currently running in memory. Since they are not
physical files, you won’t gain anything by deleting them (in fact, you can’t
delete them anyway). I’m not sure of the significance of the as file. It may
be something to do with the memory for each process but the size of the
/proc directory itself indicates the amount of free memory.
Hope this helps
Poseidon
Martin Lloyd <martin@ycmhl.demon.co.uk> wrote:
Can anyone explain the purpose of the directories with numeric names in
/proc?
If you do a “pidin” command, you’ll notice that the pid’s are the same as in
the listing of /proc . Each entry in /proc is the pid of a currently running
process.
If they are rubbish how can I delete them safely?
/proc/* files are part of a virtual FS and are not taking up harddrive space.
Try doing a “df” to see how much HD space you have left, and “du” to find
out where the most space is being used up.
600megs with all the development tools, and all the cross platform stuff is
really that much, and you may need to remove some packages from platforms you
don’t target.
-Adam
amallory@qnx.com
Poseidon (paul.ryan2@nospam.virgin.net) wrote:
: > Can anyone explain the purpose of the directories with numeric names in
: > /proc?
: /proc is the virtual filesystem for process information. The numeric file
: names are PIDs of processes currently running in memory. Since they are not
: physical files, you won’t gain anything by deleting them (in fact, you can’t
: delete them anyway). I’m not sure of the significance of the as file. It may
: be something to do with the memory for each process but the size of the
: /proc directory itself indicates the amount of free memory.
“as” == “Address Space”. If you’re sufficiently special (i.e., “root”), you
can open() that “file”, lseek() to a virtual address in the process’s address
space, and read() memory. It’s really pretty kewl!
Cheers,
-RK
Robert Krten, PARSE Software Devices; email my initials at parse dot com
Consulting, Systems Architecture / Design, Drivers, Training, QNX 4 & Neutrino
Check out our new QNX 4 and Neutrino (QRTP) books at http://www.parse.com/
Wanted PDP-8/9/10/11/12 Systems/documentation/spare parts! Will trade books!