title: The limit of ulimit -Hn
body: <p>Using trial and error, I've found the maximum number I can give to <code>ulimit -Hn</code> without getting error is <code>1048576</code>. Where does that number come from? My <code>sys.fs.file-max</code> is <code>20000500</code> (20 million).</p>