Re: [lxc-users] writeback cache for all container processes?

2015-02-04 Thread Fajar A. Nugraha
On Mon, Feb 2, 2015 at 8:35 PM, Fajar A. Nugraha wrote: > On Mon, Feb 2, 2015 at 7:45 PM, Tomasz Chmielewski > wrote: > >> >>> If you want to disable sync for the container, the best you can do is >>> probably use some filesystem that can do so. For example, zfs has >>> "sync=disabled" per-datas

Re: [lxc-users] writeback cache for all container processes?

2015-02-02 Thread Fajar A. Nugraha
On Mon, Feb 2, 2015 at 7:45 PM, Tomasz Chmielewski wrote: > On 2015-02-02 21:37, Fajar A. Nugraha wrote: > > It's certainly possible to do "not applicable" kinds of things with >>> processes and their page cache, i.e.: >>> >>> https://code.google.com/p/pagecache-mangagement/ [1] >>> >>> Or here,

Re: [lxc-users] writeback cache for all container processes?

2015-02-02 Thread Tomasz Chmielewski
On 2015-02-02 21:37, Fajar A. Nugraha wrote: It's certainly possible to do "not applicable" kinds of things with processes and their page cache, i.e.: https://code.google.com/p/pagecache-mangagement/ [1] Or here, disabling O_DIRECT and sync would be sort of matching "feature-wise" with KVM's c

Re: [lxc-users] writeback cache for all container processes?

2015-02-02 Thread Fajar A. Nugraha
On Mon, Feb 2, 2015 at 7:23 PM, Tomasz Chmielewski wrote: > On 2015-02-02 21:13, Fajar A. Nugraha wrote: > >> You do know that lxc share the same kernel instance as the host OS, >> making such settings not applicable? >> > > Why not? Perhaps I wasn't very specific when starting the thread. > > >

Re: [lxc-users] writeback cache for all container processes?

2015-02-02 Thread Tomasz Chmielewski
On 2015-02-02 21:13, Fajar A. Nugraha wrote: You do know that lxc share the same kernel instance as the host OS, making such settings not applicable? Why not? Perhaps I wasn't very specific when starting the thread. It's certainly possible to do "not applicable" kinds of things with processe

Re: [lxc-users] writeback cache for all container processes?

2015-02-02 Thread Fajar A. Nugraha
You do know that lxc share the same kernel instance as the host OS, making such settings not applicable? -- Fajar On Mon, Feb 2, 2015 at 6:59 PM, Tomasz Chmielewski wrote: > Is it possible to start a lxc container with "writeback cache", in a way > similar to KVM's writeback cache? > > From "m

[lxc-users] writeback cache for all container processes?

2015-02-02 Thread Tomasz Chmielewski
Is it possible to start a lxc container with "writeback cache", in a way similar to KVM's writeback cache? From "man kvm": cache=writeback It will report data writes as completed as soon as the data is present in the host page cache. This is safe as long as your guest OS makes su