Solaris 10 /proc making filesystem full


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 /proc making filesystem full
# 8  
Old 06-05-2009
Everything is a file

The /proc system in Solaris uses procfs. Think of it as any other vfs, but instead of representing data on disk, it represents the process structure of running applications. The reason you are seeing it as taking up space is because procfs contains a representation of a given processes address space, as, and as such can be quite large.

Also, keep in mind the command you issued traverses mounted filesystems.

Finally, as the title suggested, "everything is a file." This is a fundamental Unix design principle. It is why devices, ports, virtual terminals, etc, are all accessed as files and through standard system calls like open(), for example. /proc is just extending the "everything is a file" principle to include processes for ease of access. It makes creating (and using) tools like 'pgrep', 'pkill', 'preap' (a personal fav), 'pmap', etc., easy.

Quote:
Originally Posted by Sara-sh
Just wondered, if there is no real files in /proc, why does it show up as the highest space occupier on my server (this is an old Solaris 2.6):

#du -sk * |sort -rn |head
723555 proc
302662 usr
282955 opt
249259 export
209532 var
8568 tmp
5997 kernel
5019 sbin
3965 platform
2536 etc

-----Post Update-----

I would appreciate a quick response, Thanks.
# 9  
Old 06-05-2009
Since /export is part of / on your system and home directories are usually in /export/home on Solaris you might want to check the home directories of your users for new files that are taking up too much space. The same can be said for /opt where some applications may be storing things like log files.

Please leave /proc alone. Smilie
# 10  
Old 06-05-2009
Thank you for the explanation forsnick.

Seg, du command that I run does not care wether directories are on separate partitions or not. On this server, /usr, /opt, /export/home, and /var are all on their own partitions so removing things from them would not solve my problem.

I have found stuff to remove for now until we rebuild this old server with an appropraite size /.
Thanks all.

# 11  
Old 06-05-2009
Sara-sh,
I was responding to the original poster. I see now that you resurrected an old thread to bring up your point- my reply was not intended to match your situation.
# 12  
Old 06-05-2009
Sorry about the confussion Seg ...

You guys are great, thanks for sharing the knowledge, appreciate it.
# 13  
Old 06-06-2009
Quote:
Originally Posted by Sara-sh
Just wondered, if there is no real files in /proc, why does it show up as the highest space occupier on my server (this is an old Solaris 2.6):

#du -sk * |sort -rn |head
723555 proc
302662 usr
282955 opt
249259 export
209532 var
8568 tmp
5997 kernel
5019 sbin
3965 platform
2536 etc

-----Post Update-----

I would appreciate a quick response, Thanks.

I have been face it myself at my machine. I just reboot the OS-solaris then /proc going to normal again.


Regards

Bejo Smilie
# 14  
Old 06-08-2009
Thanks Bejo, that is a good point. However the quetion is, was there any disk space released as a result of the reboot, was there more space in / directory after the reboot?
Thanks again ...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Filesystem Full

In our shop we have to run a batch cycle. Every so often while we are running batch we get a filesystem full situation that causes batch to stop or slow down. Anyway, the practiced procedure is to look for large files and zip them. This takes a lot of time. We are in a sun solaris environment. What... (1 Reply)
Discussion started by: Harleyrci
1 Replies

2. Linux

Tripwire Nightware on Linux (proc filesystem)

Hello, I am having a nightmare with Tripwire on Linux..... I cannot get it to ignore the /proc filesystem, which I want to completely ignore for now Has anyone here successfully configured Tripwire on Linux and completed ignored the /proc filesystem ? If so, please reply and tell me how... (0 Replies)
Discussion started by: Neo
0 Replies

3. UNIX for Dummies Questions & Answers

filesystem is full

Hello everybody, a very basic question. Inspite of me deleting huge files in a filesystem(AIX 5.3) in oracle folder, the filesystem when i check using df -k still shows 100% full. Does that mean there is a process still pointing to the files which i deleted. how do i work around this. Thanks!... (3 Replies)
Discussion started by: karthikosu
3 Replies

4. Red Hat

/ filesystem getting full

Hi All, How do I increase the root filesystem? It's getting full. / 90% Here's the break down, below 232 dev 5624 tmp *6764 bin 16860 root *19680 sbin *20436 lib64 28329 boot *47992 etc 150012 var *254540 lib 651708 home *2445044 usr (5 Replies)
Discussion started by: itik
5 Replies

5. UNIX for Dummies Questions & Answers

filesystem full

my root filesystem is eventually full "/dev/rdsk/c1d0s0" as a result i cannot boot to the operating system, i booted into the fail safe mode to check the space using df -h command i discover that it is eventually full. Also to my amazement i found that i cannot see the filesystem which mounted on... (1 Reply)
Discussion started by: seyiisq
1 Replies

6. Solaris

The filesystem is still full - Solaris 10!

Good morning, sir! I've a problem with FileSystem, the problem is FileSystem is full First time, I've already read carefully the sticky thread FileSystem full - What to lock for https://www.unix.com/sun-solaris/25840-filesystem-full-what-look.html And then, I will post some information of... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

7. Solaris

Making filesystem on presented lun

Hi, I am working on SunOS perlrate 5.10 Generic_127111-09 sun4v sparc SUNW,SPARC-Enterprise-T5120. The server has an LSISAS3801E HBA card installed and is connected to a StorageTek 2530 array. I have made a volume on arrary using Common Array Manager. I can see the volume on server: ... (2 Replies)
Discussion started by: seanban
2 Replies

8. Programming

Changing fname in /proc filesystem

I wrote a wrapper (call it prog1) around another program (call it prog2) for security purposes. When prog1 launches prog2 it sets the argv value to be "prog1" so that "prog2" does not show up when you use the "ps" command. Howerver, if you use the option "-o fname" with "ps" then the file name for... (3 Replies)
Discussion started by: wilbur
3 Replies

9. UNIX for Dummies Questions & Answers

Filesystem Full

I noticed that whenever something is printed from my workstation, the available disk space in the /dev/dsk/c0t0d0s0 decreases considerably. Hence, after using my workstation for sometime, I encounter an error message: "Filesystem Full" that prevents me from printing any further. Is there a way to... (16 Replies)
Discussion started by: ilak1008
16 Replies
Login or Register to Ask a Question