linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mlockall() with pid parameter
@ 2016-12-07 15:39 Federico Reghenzani
  2016-12-07 16:21 ` Vlastimil Babka
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Federico Reghenzani @ 2016-12-07 15:39 UTC (permalink / raw)
  To: linux-mm

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

Hello,

I'm working on Real-Time applications in Linux. `mlockall()` is a typical
syscall used in RT processes in order to avoid page faults. However, the
use of this syscall is strongly limited by ulimits, so basically all RT
processes that want to call `mlockall()` have to be executed with root
privileges.

What I would like to have is a syscall that accept a "pid", so a process
spawned by root would be able to enforce the memory locking to other
non-root processes. The prototypes would be:

int mlockall(int flags, pid_t pid);
int munlockall(pid_t pid);

I checked the source code and it seems to me quite easy to add this syscall
variant.

I'm writing here to have a feedback before starting to edit the code. Do
you think that this is a good approach?


Thank you,
Federico

-- 
*Federico Reghenzani*
PhD Candidate
Politecnico di Milano
Dipartimento di Elettronica, Informazione e Bioingegneria

[-- Attachment #2: Type: text/html, Size: 1337 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-12-09 15:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 15:39 mlockall() with pid parameter Federico Reghenzani
2016-12-07 16:21 ` Vlastimil Babka
2016-12-07 16:33   ` Federico Reghenzani
2016-12-07 20:01     ` Vlastimil Babka
2016-12-08 12:58       ` Federico Reghenzani
2016-12-09 15:36         ` Federico Reghenzani
2016-12-07 17:40 ` Dave Hansen
2016-12-07 18:42 ` Kirill A. Shutemov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).