title: Raising hard limit on RLIMIT_NOFILE system-wide on Linux
body: <p>We need to raise RLIMIT_NOFILE when running memcached, as we're hitting the default hard limit (1024). However, raising a hard limit requires root, and for various reasons we don't want to have to run memcached or its containing shell as root. Right now we happily run it as a non-root user.</p>
  
  <p>Is there a way to raise the hard limit for RLIMIT_NOFILE system-wide, so that we can continue to run memcached as non-root and simply raise the soft limit?</p>
  
  <p>This is RedHat Linux with 2.6 kernel.</p>
  
  <p>Thanks!</p>
  
  <p>Jon</p>