lkml.org 
[lkml]   [2004]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: your mail
Date
From
> -----Original Message-----
> From: Herbert Poetzl [mailto:herbert@13thfloor.at]
> Sent: Monday, May 24, 2004 3:30 PM
> To: Laughlin, Joseph V
> Cc: linux-kernel@vger.kernel.org
> Subject: Re: your mail
>
>
> On Mon, May 24, 2004 at 03:20:33PM -0700, Laughlin, Joseph V wrote:
> > I've been tasked with modifying a 2.4 kernel so that a
> non-root user
> > can do the following:
> >
> > Dynamically change the priorities of processes (up and down) Lock
> > processes in memory Can change process cpu affinity
> >
> > Anyone got any ideas about how I could start doing this?
> (I'm new to
> > kernel development, btw.)
>
> check the kernel capability system ...
> (it's quite simple)
>
> #define CAP_SYS_NICE 23
> #define CAP_IPC_LOCK 14
>
> cpu scheduler affinity isn't part of 2.4 AFAIK
> so there is no easy way to 'control' it ...
>

Currently, we're using sched_setaffinity() to control it, which existed
in our 2.4.19 kernel. (but, you have to be root to use it, and we'd
like non-root users to be able to change the affinity.)

Joe

-
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 14:03    [W:0.040 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site