PDA

View Full Version : Lots of directories in /proc...?



humuhumu
10-09-2003, 02:33 PM
If I go into /proc on my server, there are HUNDREDS of directories there with numbers as names. Is that correct or is something dodgy going on? Each directory has the following files in it:

-r--r--r-- 1 root root 0 Oct 9 14:29 cmdline
lrwxrwxrwx 1 root root 0 Oct 9 14:29 cwd
-r-------- 1 root root 0 Oct 9 14:29 environ
lrwxrwxrwx 1 root root 0 Oct 9 14:29 exe
dr-x------ 2 root root 0 Oct 9 14:29 fd
-r--r--r-- 1 root root 0 Oct 9 14:29 maps
-rw------- 1 root root 0 Oct 9 14:29 mem
-r--r--r-- 1 root root 0 Oct 9 14:29 mounts
lrwxrwxrwx 1 root root 0 Oct 9 14:29 root
-r--r--r-- 1 root root 0 Oct 9 14:29 stat
-r--r--r-- 1 root root 0 Oct 9 14:29 statm
-r--r--r-- 1 root root 0 Oct 9 14:29 status

If I do "more maps", for instance, I start to see things like this:

wdc-na02:/share /share nfs rw,noatime,v2,rsize=8192,wsize=8192,acregmin=17280 0,acregmax=172800,acdirmin=172800,
acdirmax=172800,soft,udp,lock,addr=wdc-na02 0 0
wdc-na01:/shome /shome nfs rw,noatime,v2,rsize=8192,wsize=8192,acregmin=17280 0,acregmax=172800,acdirmin=172800,
acdirmax=172800,soft,udp,lock,addr=wdc-na01 0 0
10.3.1.10:/etc /mnt/netapp/etc nfs rw,noatime,v2,rsize=8192,wsize=8192,soft,udp,lock, addr=10.3.1.10 0 0
special /home/accounts/wdclnx20/proc proc rw 0 0
special /home/accounts/cellfood.com.mx/proc proc rw 0 0
special /home/accounts/firealliance.org/proc proc rw 0 0
special /home/accounts/ilronco.it/proc proc rw 0 0
special /home/accounts/newmansgifts.com/proc proc rw 0 0
special /home/accounts/longoschools.com/proc proc rw 0 0


Is this normal or something I should be worried about?

wildjokerdesign
10-09-2003, 02:44 PM
Yep I think it is pretty normal. Are you a reseller by any chance?

Not sure what all the stuff is for but do not think it is something you need to worry about. The new directories and all the extra "junk" is something that many have been curious about. Hopefully at some point WestHost well have the time to detail what many things are and what to look for that maybe should not be there.

Shawn

humuhumu
10-09-2003, 02:47 PM
Nope, not a reseller. Was a bit confused as I'd been looking around the site a few weeks ago and didn't think all that stuff was in /proc then... maybe I just missed it.

wildjokerdesign
10-09-2003, 02:50 PM
The one thing that looks odd to me are the entries for "special". Do they relate to you in anyway?

humuhumu
10-09-2003, 02:54 PM
Nothing to do with me at all... might they be the other accounts on the same server as me? I've never seen the domains before in my life... The list of 'special [domain name]' lines goes on for a very long time. I'd say there were about five hundred in each 'mounts' file in each directory (and hundreds of numerical directories). Can attach a full output of one of the files if it would help.

wildjokerdesign
10-09-2003, 03:25 PM
Ok yes I have the same as you. Must have something to do with the VDS. I imagin the list of sites are the ones on the same server as you. I really do not think it is anything to worry about.

So many new files and directories... :) Wonder if we well ever get used to it. I think new acounts should come with a warning... "NOT FOR THE FAINT OF HEART"

Perhaps one of the other forum users who will have an idea.... Me I guess I will go read up on Unix, Apache and all that stuff.

Shawn

humuhumu
10-09-2003, 03:30 PM
Yeah... I know the basics of how to move around and do a few things in linux but don't have the slightest clue what some of the things are even for the account, let alone how they work! I guess they're thinking that most people will use the Site Manager and leave it at that, but if you give people access to their servers, they're going to go exploring!

torrin
10-09-2003, 05:31 PM
If I go into /proc on my server, there are HUNDREDS of directories there with numbers as names. Is that correct or is something dodgy going on? Each directory has the following files in it:

[SNIP]

Is this normal or something I should be worried about?

Those numbers are process numbers. If you do a
ps -ef you should see those same numbers.

Information is kept under the proc directory for easy access. I can't remember names right now, but you should also find some other useful files under there. This information is all about the computer systems that linux is running under. If you look hard enough, you will find the processor, processor speed, free ram space, etc. Lots of good info.

By the way, it's normal. In Westhost 1.0, the /proc directory was there, but we didn't have access to it. Oh, and 1 more thing, it's takes up 0 space. It's a virtual directory, not something that resides on the hard disk. Just check the sizes of those files.