Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Kyungmin Park
On Tue, Mar 10, 2015 at 11:22 PM, Jan Kara wrote: > On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: >> On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: >> > Any updates? >> >> Please just add disk quota support to tmpfs so thast the standard quota >> netlink notifications can be

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Lukáš Czerner
t , > Alexander Viro , > Linux Filesystem Mailing List , > Bartlomiej Zolnierkiewicz , > Marek Szyprowski > Subject: Re: [RFC] shmem: Add eventfd notification on utlilization level > > On 03/10/2015 03:22 PM, Jan Kara wrote: > > On Tue 10-03-15 06:03:23, Christop

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Beata Michalska
On 03/10/2015 03:22 PM, Jan Kara wrote: > On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: >> On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: >>> Any updates? >> Please just add disk quota support to tmpfs so thast the standard quota >> netlink notifications can be used. > If I

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Jan Kara
On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: > On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: > > Any updates? > > Please just add disk quota support to tmpfs so thast the standard quota > netlink notifications can be used. If I understand the problem at hand, they are

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Christoph Hellwig
On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: > Any updates? Please just add disk quota support to tmpfs so thast the standard quota netlink notifications can be used. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Jan Kara
On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: Any updates? Please just add disk quota support to tmpfs so thast the standard quota netlink notifications can be used. If I understand the problem at hand, they are really

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Christoph Hellwig
On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: Any updates? Please just add disk quota support to tmpfs so thast the standard quota netlink notifications can be used. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Kyungmin Park
On Tue, Mar 10, 2015 at 11:22 PM, Jan Kara j...@suse.cz wrote: On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: Any updates? Please just add disk quota support to tmpfs so thast the standard quota netlink notifications can be

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Lukáš Czerner
Szyprowski m.szyprow...@samsung.com Subject: Re: [RFC] shmem: Add eventfd notification on utlilization level On 03/10/2015 03:22 PM, Jan Kara wrote: On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: Any updates? Please just add

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-10 Thread Beata Michalska
On 03/10/2015 03:22 PM, Jan Kara wrote: On Tue 10-03-15 06:03:23, Christoph Hellwig wrote: On Tue, Mar 10, 2015 at 10:51:41AM +0900, Kyungmin Park wrote: Any updates? Please just add disk quota support to tmpfs so thast the standard quota netlink notifications can be used. If I understand

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-09 Thread Kyungmin Park
Any updates? Thank you, Kyungmin Park On Wed, Feb 11, 2015 at 11:50 PM, Krzysztof Kozlowski wrote: > Allow notifying user space when used space of tmpfs exceeds specified > level. > > The utilization level is passed as mount option 'warn_used'. The kernel > will notify user-space through

Re: [RFC] shmem: Add eventfd notification on utlilization level

2015-03-09 Thread Kyungmin Park
Any updates? Thank you, Kyungmin Park On Wed, Feb 11, 2015 at 11:50 PM, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Allow notifying user space when used space of tmpfs exceeds specified level. The utilization level is passed as mount option 'warn_used'. The kernel will notify

[RFC] shmem: Add eventfd notification on utlilization level

2015-02-11 Thread Krzysztof Kozlowski
Allow notifying user space when used space of tmpfs exceeds specified level. The utilization level is passed as mount option 'warn_used'. The kernel will notify user-space through eventfd after exceeding this number of used blocks. The eventfd descriptor has to be passed through sysfs file:

[RFC] shmem: Add eventfd notification on utlilization level

2015-02-11 Thread Krzysztof Kozlowski
Hi, We have a need of getting notifications from kernel to user-space when tmpfs runs out of free space. I used here a term 'utilization' in the meaning of percent of free space. The idea I got is to use eventfd. Proof of concept attached: 1. Patch for kernel. 2. Sample C program (at the end of

[RFC] shmem: Add eventfd notification on utlilization level

2015-02-11 Thread Krzysztof Kozlowski
Allow notifying user space when used space of tmpfs exceeds specified level. The utilization level is passed as mount option 'warn_used'. The kernel will notify user-space through eventfd after exceeding this number of used blocks. The eventfd descriptor has to be passed through sysfs file:

[RFC] shmem: Add eventfd notification on utlilization level

2015-02-11 Thread Krzysztof Kozlowski
Hi, We have a need of getting notifications from kernel to user-space when tmpfs runs out of free space. I used here a term 'utilization' in the meaning of percent of free space. The idea I got is to use eventfd. Proof of concept attached: 1. Patch for kernel. 2. Sample C program (at the end of