How is this possible?

Posted by iUnknown, 09-16-2008, 02:27 PM
Hello, When I run the following command on my server: # ls -lah /var/cache I get the following output: # ls -lah /var/cache total 100K drwxr-xr-x 13 root root 4.0K Sep 10 19:13 . drwxr-xr-x 28 root root 4.0K Apr 28 19:01 .. drwxr-xr-x 3 root root 4.0K Feb 6 2008 alchemist drwxrwxrwt 2 root root 4.0K May 24 19:36 coolkey drwxrwxr-x 2 root lp 4.0K Feb 6 2008 cups drwxr-xr-x 18 root root 4.0K Sep 10 19:13 eaccelerator drwxr-xr-x 2 root root 4.0K Feb 6 2008 fontconfig drwxr-xr-x 2 root root 4.0K Sep 16 04:02 logwatch drwxr-xr-x 14 root root 4.0K Feb 6 2008 man drwx------ 2 apache apache 4.0K Jan 16 2008 mod_proxy drwx------ 2 apache root 4.0K Jan 16 2008 mod_ssl drwxr-xr-x 3 root root 4.0K Jun 22 02:05 samba drwxr-xr-x 6 root root 4.0K Jul 10 02:33 yum As you can see, it says, "total 100K", but how is this possible. There seem to be only 13 files all at "4.0K" so that adds up to 52K - that's not 100K. Also I have reason to believe that eaccelerator is very big, is it safe to delete this file? Is eaccelerator (php accelerator) worth having? Can I delete the eaccelerator file if I uninstall eaccelerator and it is still there (I have not done this but I am considering it because of all the problems it has caused me)? Thanks very much.

Posted by Xous, 09-16-2008, 02:35 PM
Those are all directories. the 4.0K represents the space the directory entry it-self takes up in the file-system not the total amount of data the directory contains. the following command will give you the total amount of space directories and files take up. # du -hax --max-depth=1

Posted by iUnknown, 09-16-2008, 02:38 PM
Thanks very much for that. I'm not sure what to do about eaccelerator, it clearly is the problem: # du -hax --max-depth=1 16K ./samba 8.0K ./mod_ssl 132K ./fontconfig 8.0K ./coolkey 8.0K ./logwatch 8.0K ./mod_proxy 24K ./cups 695M ./yum 918M ./eaccelerator 16K ./alchemist 1.2M ./man 1.6G . Still seeking advice to the following questions about eaccelerator: "Also I have reason to believe that eaccelerator is very big, is it safe to delete this file? Is eaccelerator (php accelerator) worth having? Can I delete the eaccelerator file if I uninstall eaccelerator and it is still there (I have not done this but I am considering it because of all the problems it has caused me)?"

Posted by cabron, 09-16-2008, 04:28 PM
If you haven't got hundreds of sites running it is worth the trouble. What problems did it cause you?

Posted by iUnknown, 09-16-2008, 04:35 PM
I had to move it from my /tmp partition to that because as you can see, it's almost taking up 1 GB (it seems to be growing by around 400 MB every day). I have got hundreds of sites running so I'm going to rebuild apache without it. What should I do if this file stays? Just to check, it'll probably be fine to delete?

Posted by PCS-Chris, 09-16-2008, 04:37 PM
After about a months use our most active cPanel server has about 2GB worth of cached files. If your server is really busy (which presumably it is) your probably better off getting rid of eaccellerator, because otherwise its just going to fill your drive up. After initially caching it shouldn't grow much bigger. It certainly wont increase by 400MB per day. You could create a little script to automatically empty the cache folder after X amount of time, but that kind of defeats the whole purpose of having such a cache. Can you look at /usr/lib/php.ini and paste your eaccellerator settings here? We may be able to offer some advice on settings to change which may help a bit. Chris.

Posted by iUnknown, 09-16-2008, 04:43 PM
Too late! Already rebuilding apache without eaccelerator. I didn't find any benefits of it anyway, so that confirmed my decision to remove it. After it's removed, I'll simply delete the eaccelerator file in the /var/cache - thanks for all your responses!

Was this answer helpful?

 Print this Article

Also Read

please look at my ftp problem

Posted by TEGnet, 09-13-2008, 12:48 PMi am trying to setup a simple ftp server in my home, i...

clearstatcache - Third time lucky... (PHP question)

Posted by thomase, 09-11-2008, 02:21 PMI've asked two people who are pretty good at PHP and no...

Released Sql Server 2008 Express without SSMSE 08

Posted by IceDog, 08-18-2008, 12:27 AMI'm sure most of you know that they released the Sql Server...

SMS based call-to-action

Posted by Jatinder, 02-15-2011, 11:00 AMHello, I am looking for India based SMS gateway which...

Would this be Secure?

Posted by aldo, 01-09-2008, 03:19 AMI currently only use cookies for my user systems, I see...