compiled_templates folder using up inodes on Ubuntu 14.04 Server
How many files are in the compiled_templates directory? There should be a 1:1 correlation between the number of actual templates you have, and the number of cached .php compiled templates in the compiled_templatesfolder.

It shouldn't have anything to do with 404 errors, etc.

I've never seen nor heard of the situation that you've described.