<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1421209447884_11908" dir="ltr"><span id="yui_3_16_0_1_1421209447884_11924">Thanks. When i say my own file system, yes my own kernel file system written for linux. A small yet working FS.</span></div><div id="yui_3_16_0_1_1421209447884_11908" dir="ltr">I want to load this FS and want applications to use them, but not consume entire cpu and memory. If i can bring up KVM then i can set cpu and memory for this KVM and load and mount my FS in this KVM and KVM's resource limits will directly control the FS consumption etc. </div><div id="yui_3_16_0_1_1421209447884_11908" dir="ltr"><br></div><div id="yui_3_16_0_1_1421209447884_11908" dir="ltr">How i can achieve the same thing without using KVM. When i mean template, i mean the linux image used as a separate container. ( i assume i can build a new linux distro with my FS as default) and boot it up. </div><div id="yui_3_16_0_1_1421209447884_11908" dir="ltr">I am aware that containers are user level and share the same kernel. Thank for the patience</div><div id="yui_3_16_0_1_1421209447884_11908" dir="ltr"><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 Wednesday, January 14, 2015 10:37 AM, Fajar A. Nugraha <list@fajar.net> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">You need to be more clear. More response inline<br clear="none"><br clear="none">On Wed, Jan 14, 2015 at 11:26 AM, Mohan G <<a shape="rect" ymailto="mailto:mohan_gg@yahoo.com" href="mailto:mohan_gg@yahoo.com">mohan_gg@yahoo.com</a>> wrote:<br clear="none">><br clear="none">> Thanks for the reply, now i guess my specific question is.<br clear="none">> 1) I have my own file system which i can load to the kernel. But i want to restrict the file systems usage as a whole.<br clear="none"><br clear="none">Do you mean your own file system module? e.g. something like fuse?<br clear="none">What do you mean by "restrict the file systems usage"? Only some<br clear="none">container can use that type of fs? Restrict its size?<br clear="none"><br clear="none">Short version is you should set all mounts in the host (including<br clear="none">loading the fs module, if it's a new one), and the container can then<br clear="none">simply use it. Also, do NOT allow containers to mount their own<br clear="none">filesystem (this is already the default setting when you use ubuntu<br clear="none">container on ubuntu host)<br clear="none"><br clear="none"><br clear="none">> 2) which means if i can build a kernel template with my FS on it , then would i be able to set limits on memory and cpu for the FS.<br clear="none">><br clear="none"><br clear="none">what "kernel template"? You DO know that containers share the same<br clear="none">kernel as the host, right?<br clear="none">Also, I see no direct connection between "memory and cpu" and the type<br clear="none">of filesystem. Are you perhaps confusing FS, when you mean "container"<br clear="none">(i.e. guest)<br clear="none"><br clear="none">> basically i am looking for ways for FS to use KVM type limit ( in terms of cpu and memory) without actually using KVM.<br clear="none"><br clear="none">If you mean "limit container's cpu and memory use", see earlier<br clear="none">response about cgroups. Again, I see no correlation between FS and<div class="yqt5623566291" id="yqtfd46187"><br clear="none">"cpu and memory".</div><br clear="none"><br clear="none">-- <br clear="none">Fajar<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><br></div> </div> </div> </div> </div></body></html>