<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/libcg/patches/" rel="alternate"/><link href="https://sourceforge.net/p/libcg/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/libcg/patches/</id><updated>2021-02-08T10:01:15.715000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#7 Fix incorrect error message array</title><link href="https://sourceforge.net/p/libcg/patches/7/?limit=25#cee2" rel="alternate"/><published>2021-02-08T10:01:15.715000Z</published><updated>2021-02-08T10:01:15.715000Z</updated><author><name>Alexander Galanin</name><uri>https://sourceforge.net/u/agalanin/</uri></author><id>https://sourceforge.netffd4f25cee9d96daf0df47b92297231280dedbe4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This may lead to returning invalid error message from cgroup_strerror()&lt;br/&gt;
or accessing out of archive boundary when cgroup_strerror callew with&lt;br/&gt;
code=ECGNONEMPTY.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fix incorrect error message array</title><link href="https://sourceforge.net/p/libcg/patches/7/" rel="alternate"/><published>2021-02-08T09:43:32.115000Z</published><updated>2021-02-08T09:43:32.115000Z</updated><author><name>Alexander Galanin</name><uri>https://sourceforge.net/u/agalanin/</uri></author><id>https://sourceforge.net6240fb2b8e567a06d0f8c63ff3cfdd0e78da0c12</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;cgroup_strerror_codes in src/api.c does not match to ECG* error enum defined in include/libcgroup/error.h&lt;br/&gt;
I have added one more error message to fill the gap between ECGMOUNTFAIL (50021 - Cgroup mounting failed) and ECGEOF (50023 - End of File or iterator) messages.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#5 Increasing the value of CG_VALUE_MAX</title><link href="https://sourceforge.net/p/libcg/patches/5/?limit=25#fd3e" rel="alternate"/><published>2019-07-26T19:12:54.989000Z</published><updated>2019-07-26T19:12:54.989000Z</updated><author><name>Neil Jones</name><uri>https://sourceforge.net/u/nfjones/</uri></author><id>https://sourceforge.netcc0b80cae9c9e285a37c63858e693035d25a258a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have also encountered this issue on a machine with 72 cores and alternating cpu ids on each NUMA node (even cpus on numa0, odd on numa1). The value gets truncated after a comma and fails validation. Setting &lt;code&gt;CG_VALUE_MAX&lt;/code&gt; to a larger value fixes it.&lt;/p&gt;
&lt;p&gt;For reference:&lt;br/&gt;
The cpuset:&lt;br/&gt;
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71&lt;/p&gt;
&lt;p&gt;gets truncated to:&lt;br/&gt;
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,&lt;/p&gt;
&lt;p&gt;This is especially bad because if it were to truncate at the final comma, the error would be invisible to the user.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#6 Misc bugfixes and features</title><link href="https://sourceforge.net/p/libcg/patches/6/?limit=25#6660" rel="alternate"/><published>2016-12-06T19:44:25.626000Z</published><updated>2016-12-06T19:44:25.626000Z</updated><author><name>Zerg2000</name><uri>https://sourceforge.net/u/zrg/</uri></author><id>https://sourceforge.net90e6c6df6f633e9daa3b66888211547c3e6f13d4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I do not see any bug reports with memleaks or infinite loops (mostly in %u templates), nor feaure requests that this patch covers, so perhaps we could just leave it here for now? If anyone ever needs it or project returns to active state, I can split it up. I haven't touched that code for over a year. :P&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#6 Misc bugfixes and features</title><link href="https://sourceforge.net/p/libcg/patches/6/?limit=25#1193" rel="alternate"/><published>2016-12-06T18:56:41.626000Z</published><updated>2016-12-06T18:56:41.626000Z</updated><author><name>Dhaval Giani</name><uri>https://sourceforge.net/u/userid-1355986/</uri></author><id>https://sourceforge.netaeefa504bc535eb6962dfe4c0a59cbfb785fe019</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It has been a while since we have done any active development on libcgroup. If you are willing, I can review patches. Can you split it up, and send it to libcg-devel@lists.sourceforge.net with the kernel DCO being followed?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br/&gt;
Dhaval&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#6 Misc bugfixes and features</title><link href="https://sourceforge.net/p/libcg/patches/6/?limit=25#ad10" rel="alternate"/><published>2016-12-06T18:53:42.717000Z</published><updated>2016-12-06T18:53:42.717000Z</updated><author><name>Zerg2000</name><uri>https://sourceforge.net/u/zrg/</uri></author><id>https://sourceforge.net96b697c5a9eb1cd5151725eaedb440d6cc2c0131</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Without SF fromatting:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;-b &amp;lt;size&amp;gt; | --netlink-buffer=&amp;lt;size&amp;gt; set the netlink buffer size in bytes
-p &amp;lt;type&amp;gt; | --procname-fallback=&amp;lt;type&amp;gt; set a default fallback for
                   | process name. Type can be one of "exe" (default) or "status"
-k        | --kernel-procname   set a name of kernel processes to "KERNEL"
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Misc bugfixes and features</title><link href="https://sourceforge.net/p/libcg/patches/6/" rel="alternate"/><published>2016-12-06T18:46:37.472000Z</published><updated>2016-12-06T18:46:37.472000Z</updated><author><name>Zerg2000</name><uri>https://sourceforge.net/u/zrg/</uri></author><id>https://sourceforge.net59f06c49f6c7436d7684639f9abbded620db2824</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi! I just wanted to drop a patch for cgroup daemon that I wrote and used for some time. It contains a few bugfixes (including memleak and infinite loop) and 3 new command line options:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;-b &amp;lt;size&amp;gt;&lt;/th&gt;
&lt;th&gt;--netlink-buffer=&amp;lt;size&amp;gt; set the netlink buffer size in bytes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;-k&lt;/td&gt;
&lt;td&gt;--kernel-procname set a name of kernel processes to "KERNEL"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;There is also one optimization for busy systems, which might look a bit ugly. Sorry for uploading it raw in one big package, but perhaps someone will find some parts usefull.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Increasing the value of CG_VALUE_MAX</title><link href="https://sourceforge.net/p/libcg/patches/5/" rel="alternate"/><published>2014-06-26T21:19:12.809000Z</published><updated>2014-06-26T21:19:12.809000Z</updated><author><name>Justin Israel</name><uri>https://sourceforge.net/u/justinisrael/</uri></author><id>https://sourceforge.net4b36f788804e280c2da0cdf410882a01c41b7336</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;code&gt;CG_VALUE_MAX&lt;/code&gt; is arbitrarily set to 100 which limits string values to a max of 100 characters. A potential situation where this will cause a failure is in the case of setting &lt;code&gt;cpuset.cpus&lt;/code&gt; to a long list (unrolled/comma-separated) of logical cpu ids.&lt;/p&gt;
&lt;p&gt;Example: Passing a list of 64 logical cpu ids as a string&lt;/p&gt;
&lt;p&gt;"0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63"&lt;/p&gt;
&lt;p&gt;will truncate and result in a badly formatted string value that causes an EOF&lt;/p&gt;
&lt;p&gt;"0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36\x01"&lt;/p&gt;
&lt;p&gt;This patch increases &lt;code&gt;CG_VALUE_MAX&lt;/code&gt; to a value of 1024. While still somewhat arbitrary, it seems this value should cover even the largest case. And since it looks like the string value buffers are being statically allocated per thread, it shouldn't really result in any major impact in initial memory. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>support indented comments</title><link href="https://sourceforge.net/p/libcg/patches/4/" rel="alternate"/><published>2012-10-25T09:26:30Z</published><updated>2012-10-25T09:26:30Z</updated><author><name>Roberto Polli</name><uri>https://sourceforge.net/u/ioggstream/</uri></author><id>https://sourceforge.netc224b6aa917fd088fa09084e7c828e18e06e94c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;reproduce:&lt;br /&gt;
- edit cgconfig.conf&lt;br /&gt;
- add a comment line preceeded by spaces [ \t]+&lt;br /&gt;
- run cgconfigparser&lt;/p&gt;
&lt;p&gt;expected:&lt;br /&gt;
- works&lt;/p&gt;
&lt;p&gt;instead:&lt;br /&gt;
- doesn't recognize the comment line&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fix cgroup_get_cgroup</title><link href="https://sourceforge.net/p/libcg/patches/3/" rel="alternate"/><published>2012-09-21T13:37:46Z</published><updated>2012-09-21T13:37:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb8337066406acfc1faa62e592f1fc60b8d90bef8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Currently (0.39-rc1), cgroup_get_cgroup applied on a cgroup with controllers and parameters fails. This patch allow the use of cgroup_get_cgroup with non-empty cgroup, overriding existing values.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>