How to reduce inode count for wordpress?

by Wild
4 replies
  • WEB DESIGN
  • |
I've searched the threads and didn't find this, I'm hoping one of the gurus in here can help. If there's a thread already here, I apologize.

Justhost has told me to reduce my inode count to 50k (there's a thread about this issue from June) and the JustHost support desk advice is "delete files that aren't being used." Deleting old emails helps, but I'm convinced that there are a lot of wordpress files that aren't used that could be eliminated. Or files created by fantastico?

Can anyone advise me or point me in the right direction? I've got my account under the 50K for now but one more wordpress install will put me over the limit.

I'm opening a HostGator account too, evidently they are bit more lenient, or so I read in here. Thank you.
#count #inode #inode limit #reduce #wordpress
  • Profile picture of the author webapex
    I did what research I could on the subject, most references I ound on the web were in reference to Hostgator, who also has a 50k limit.

    Hostgator Users Beware, This Could Effect You

    Although wordpress is more processor intensive than static html, which becomes a bigger problem, the more traffic you get, inodes just seems to be a file count, wordpress sites may not be that much different from a static site. The biggest cause may be forgotten email accounts that might have their 500 or so message limit in spam adding to the count.

    Apparently wordpress caches, while useful in lowing cpu loading, slightly increase inode count. I'm guessing your main opportunity for cutting the fat is unused themes, some auto installations give you a bunch, jsut dig into the wordpress content folder of your ftp account and toss out theme folders not i use. You can do the same for few unused plugins.

    There might be cases that are running many wordpress blogs where the multi user mode might cut down inodes, I'm not up to speed with how they have merged multi user into the standard wordpress.

    Here are a few discussions talking about inode economizing in general.

    Here's a 2008 excerpt from "another" forum, showing an inode counting script:

    I now use a PHP file to show the iNodes on my HostGater account, all that is required is copy & paste below to notepad and save as (inode.php or what ever you want), and upload to the root folder of your account in public_html

    Then use a web browser to go to the file and the iNodes count will be displayed
    For example: www.yoursite.com/inode.php

    Code:
    <?php
    system("/usr/bin/quota | /bin/awk '{ if ( $5 ~ /^[0-9]/) total+=$5 } END {print "Total Inodes :" , total}'");
    ?>

    or this one for more details

    Code:
    <?php
      echo "<b>";
      system('pwd');
      echo "</b>: ";
      system('find . | wc -l');
      echo " inodes<br />n<b>";
      system('cd ~/public_html; pwd');
      echo "</b>: ";
      system('cd ~/public_html; find . | wc -l');
      echo " inodes<br />n<b>";
      system('cd ~; pwd');
      echo "</b>: ";
      system('cd ~; find . | wc -l');
      echo " inodes";  
    ?>
    Signature

    “An expert is a person who has made all the mistakes that can be made in a very narrow field” Niels Bohr

    {{ DiscussionBoard.errors[4686358].message }}
  • Profile picture of the author Wild
    Thanks for the info. Greatly appreciated. Btw, I can't seem to get to the links you site.
    {{ DiscussionBoard.errors[4690502].message }}
  • Profile picture of the author Peru101
    Hostgator actually has a much higher inode count. For shared hosting, ($10 a month) the maximum files you can have and be backed up is 100,000, but if you don't use the backups, then it's 250,000 total. After the 100K limit, your stuff is simply no longer backed up. If you upgrade your account, you get more inode count.

    I'm looking into the Wordpress inode issue as well. Each WP installation takes around 2,000 inodes. Maybe it's just me, but that's a lotta space! You'd only be able to have around 100 niche sites on a hosting account. That's a lot, but I don't like being strapped down. Seems straight HTML would use far far fewer inodes. Correct me if I'm wrong, but unless you use a lot of images, and counting CSS, and maybe a few PHP scripts, maybe you'd use 10-50 per site at the most. That's way less than 2,000! And that's not even counting before you post on WP. . . . That's just the install. Unless pages and posts aren't counted somehow . . .
    {{ DiscussionBoard.errors[6599121].message }}
  • Profile picture of the author sickbro
    if you have exp ired domains, or domains that you have sold, you will get hammered for them, im with host gator and even tho they give u upto 250k you have to tell them to delete domains you don`t use, same as with autoresponders "IF YOU DO NOT DELETE YOUR UN-SUBS YOU ARE DTILL PAYING FOR THEM" it`s a rip off if they r not mailing for you why r they charging you for it?... it`s all small print...and easily overlooked
    {{ DiscussionBoard.errors[7684274].message }}

Trending Topics