2005-09-27 22:07:15

by Steve French (smfltc)

[permalink] [raw]
Subject: setting PF_ flags from user space PF_LESS_THROTTLE

I wanted to see if PF_LESS_THROTTLE would be helpful for Samba to set(as
it is for nfsd, which sets it directly in kernel) to avoid loopback
mount hangs when low on memory.

Any idea whether the task flags, in particular PF_LESS_THROTTLE could be
set from user space (I did not see an obvious way, short of invoking a
new kernel helper, which does not exist, to set it on user space's
behalf)?


2005-09-28 06:50:22

by Andrew Morton

[permalink] [raw]
Subject: Re: setting PF_ flags from user space PF_LESS_THROTTLE

Steve French <[email protected]> wrote:
>
> I wanted to see if PF_LESS_THROTTLE would be helpful for Samba to set(as
> it is for nfsd, which sets it directly in kernel) to avoid loopback
> mount hangs when low on memory.
>
> Any idea whether the task flags, in particular PF_LESS_THROTTLE could be
> set from user space (I did not see an obvious way, short of invoking a
> new kernel helper, which does not exist, to set it on user space's
> behalf)?

sys_prctl()?