<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1421209447884_389036"><br></div><div dir="ltr" id="yui_3_16_0_1_1421209447884_389036"><span style="font-size: 16px;" id="yui_3_16_0_1_1421209447884_389050">As the cgroup is now say 400M and i create/write a file of 8G. My point was due to 400M limit in my group, the write should create a lot of memory pressure and there  by start the pager/shrinker activity desperately and slow down the entire write throughput. ( file does get created but performance should be far worse that without running with cgroups.) is't it ?</span></div><div dir="ltr" id="yui_3_16_0_1_1421209447884_389039"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Monday, January 19, 2015 3:52 PM, Holger Amann <holger@sauspiel.de> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">Why shouldn’t it be possible to create a file with size > $some_cgroup_page_cache_memory_limit? What’s the point here?<br clear="none"><br clear="none">> Am 16.01.2015 um 20:32 schrieb Serge Hallyn <<a shape="rect" ymailto="mailto:serge.hallyn@ubuntu.com" href="mailto:serge.hallyn@ubuntu.com">serge.hallyn@ubuntu.com</a>>:<br clear="none">> <br clear="none">> Yes, I believe you need to use the kmem limits for that.  Those are afaik<br clear="none">> not yet fully supported, sadly, but my ubuntu utopic host at least has<br clear="none">> them available:  memory.kmem.limit_in_bytes etc<br clear="none">> <br clear="none">> Quoting Mohan G (<a shape="rect" ymailto="mailto:mohan_gg@yahoo.com" href="mailto:mohan_gg@yahoo.com">mohan_gg@yahoo.com</a>):<br clear="none">>> Hi,I created a cgroup and set memory limit as 400M. And i ran my test program which is under this group to create a file of size 8G. ( thinking that the amount of page cache pages needed at any point of time can exceed 400M). But i did not have any issues and the file got created. So my question is do these memory limits only apply to non file based operations. ie (page cache is not accounted for ?). The question is relevant to containers too.. ( same logic applies here too).<br clear="none">>> RegardsMohan<br clear="none">>> <br clear="none">> <br clear="none">>> _______________________________________________<br clear="none">>> lxc-users mailing list<br clear="none">>> <a shape="rect" ymailto="mailto:lxc-users@lists.linuxcontainers.org" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br clear="none">>> <a shape="rect" href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><div class="yqt8143282301" id="yqtfd25068"><br clear="none">> <br clear="none">> _______________________________________________<br clear="none">> lxc-users mailing list<br clear="none">> <a shape="rect" ymailto="mailto:lxc-users@lists.linuxcontainers.org" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br clear="none">> <a shape="rect" href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br clear="none"><br clear="none">_______________________________________________<br clear="none">lxc-users mailing list<br clear="none"><a shape="rect" ymailto="mailto:lxc-users@lists.linuxcontainers.org" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br clear="none"><a shape="rect" href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a></div><br><br></div>  </div> </div>  </div> </div></body></html>