As Serge said, some limits needs to be enforced by your filesystem.
Like tmpfs case for example, the size limit are set during mount,
which should be done by the host (e.g. as an option on lxc.mount.entry
in container config file).
cgroup limits is AFAIK only apply to userland, and does not apply
Dear Mohan,
we feel fine if you're use LXC. But as a LX-Container is based on a bunch of
kernel features, there might be a much more simple way: One may open a group on
arbitrary cgroup controllers (by simple userland calls like mkdir) and add
running task to it.
As you're talking about a FUSE
Your filesystem / kernel module will need to provide a way to enforce
the limits you want. For instance, when you mount a new tmpfs, you can
specify a maximum size for the fs.
Quoting Mohan G (mohan...@yahoo.com):
> Thanks. When i say my own file system, yes my own kernel file system written
> f
Thanks. When i say my own file system, yes my own kernel file system written
for linux. A small yet working FS.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 F
You need to be more clear. More response inline
On Wed, Jan 14, 2015 at 11:26 AM, Mohan G wrote:
>
> Thanks for the reply, now i guess my specific question is.
> 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.
Do you mean
Thanks for the reply, now i guess my specific question is.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.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
You cannot load modules inside a container (safely - you should not allow it)
memory/cgroup limits for a container are specified using 'lxc.cgroup.' lines in
the container's configuration file. See 'man lxc.container.conf'. Cgroups are
for all tasks.
Quoting Mohan G (mohan...@yahoo.com):
> Hi,I
Hi,I am new to the containers world and have been reading about this feature
all day. Some of queries are basic in nature, do bear with me.1) can i load a
module inside a container.2) And can that module be a file system module.3)
where do we specify the memory/cpu limits of the container. (is