<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sig-I/O (Posts about kernel)</title><link>https://sig-io.nl/</link><description></description><atom:link href="https://sig-io.nl/categories/kernel.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2024 &lt;a href="mailto:mark@sig-io.nl"&gt;Mark Janssen&lt;/a&gt; </copyright><lastBuildDate>Wed, 12 Jun 2024 13:43:15 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Run-time editing of limits in Linux</title><link>https://sig-io.nl/posts/run-time-editing-of-limits-in-linux/</link><dc:creator>Mark Janssen</dc:creator><description>&lt;p&gt;On CentOS and RHEL Linux (with kernels &amp;gt;= 2.6.32) you can modify resource-limits (ulimit) run-time. This can be done using the /proc/&amp;lt;pid&amp;gt;/limits functionality. On older kernels this file is read-only and can be used to inspect the limits that are in effect on the process. On newer systems you can modify the limits with echo:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;cat /proc/pid/limits
echo -n "Max open files=soft:hard" &amp;gt; /proc/pid/limits
cat /proc/pid/limits&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;On older systems you will have to modify limits before starting a process.&lt;/p&gt;
&lt;p&gt;(See also the post on &lt;a class="reference external" href="http://serverfault.com/questions/201207/set-max-file-limit-on-a-running-process"&gt;serverfault&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;If you are not running CentOS/RHEL, you can use the ‘prlimit’ command, which does the same thing, but doesn’t rely on a patch that’s no longer present in current kernels.&lt;/p&gt;</description><category>kernel</category><category>limit</category><category>linux</category><category>proc</category><category>resource</category><category>ulimit</category><guid>https://sig-io.nl/posts/run-time-editing-of-limits-in-linux/</guid><pubDate>Tue, 14 Feb 2012 21:24:21 GMT</pubDate></item></channel></rss>