lkml.org 
[lkml]   [1998]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SMP fields in struct task??
On Sat, Jan 17, 1998 at 11:30:01PM +0000, Chris Evans wrote:
> There appear to be, in sched.h, in struct task, a few SMP related fields.
> If these are indeed only needed in SMP operation, wouldn't it be best to
> surround them with a "#ifdef __SMP__"?
>
> This would save a couple of pages(!) RAM in 2.1.x for the default NR_TASKS
> == 512.

It wouldn't, struct task_struct is allocated as part of the process'
kernel stack. What could be done is sorting things such that only SMP
machines will ever fetch elements only used for SMP into the cache.
Someone else was already thinking about that some time ago.

Ralf

\
 
 \ /
  Last update: 2005-03-22 13:41    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site