lkml.org 
[lkml]   [2003]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: process resident in memory
From
Date
On Tue, 2003-03-18 at 09:21, Mehmet Ersan TOPALOGLU wrote:

> first of all i don't have chance to modify the process' code.
> the thing mlockall does is exactly what i am trying to do
> (at least a part of it).
>
> So your answer is he couldn't know about user-mode so it is not possible.
> What if kernel forks that process or somehow its process id is informed
> to kernel?

nice works given a PID. You can call renice(1) from the command line or
you can use the nice(2) or setpriority(2) system calls.

Note you need to be root to lower the nice value (increase the priority)
of a process.

Unfortunately mlockall() only works from a process in the address
space. And it is not inherited on fork(). Tough luck.

Robert Love



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.036 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site