All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux Scheduler and Compilation
@ 2001-10-25 15:20 Omer Sever
  2001-10-25 20:37 ` José Luis Domingo López
  2001-10-25 21:48 ` J . A . Magallon
  0 siblings, 2 replies; 6+ messages in thread
From: Omer Sever @ 2001-10-25 15:20 UTC (permalink / raw)
  To: linux-kernel

     I have a project on Linux CPU Scheduler to make it Fair Share
Scheduler.I will make some changes on some files such as sched.c vs...I will
want to see the effect ot the change but recompilation of the kernel takes
about half an hour on my machine.How can I minimize this time?Which part
should I necessarily include in my config file for the kernel to minimize
it?


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

* Re: Linux Scheduler and Compilation
  2001-10-25 20:37 ` José Luis Domingo López
@ 2001-10-25 19:06   ` Shaya Potter
  2001-10-25 19:16     ` Richard B. Johnson
  2001-10-25 23:07     ` george anzinger
  0 siblings, 2 replies; 6+ messages in thread
From: Shaya Potter @ 2001-10-25 19:06 UTC (permalink / raw)
  To: José Luis Domingo López; +Cc: linux-kernel

On Thu, 2001-10-25 at 16:37, José Luis Domingo López wrote:
> On Thursday, 25 October 2001, at 18:20:25 +0300,
> Omer Sever wrote:
> 
> >      I have a project on Linux CPU Scheduler to make it Fair Share
> > Scheduler.I will make some changes on some files such as sched.c vs...I will
> > want to see the effect ot the change but recompilation of the kernel takes
> > about half an hour on my machine.How can I minimize this time?Which part
> > should I necessarily include in my config file for the kernel to minimize
> > it?
> > 
> make is your friend: it will only recompile those files that changed from
> the last compilation. If you modify some #includes in the code, I believe
> you will have to also run "make dep" before, to get dependencies right.

Except, as I discovered recently in playing around with the scheduler,
if you modify sched.h, you basically have to recompile the entire
kernel, as it seems everything depends on it.

On that note, why is add_to_runqueue() in sched.c and
del_from_runqueue() in sched.h?  del_from_runqueue being the only func I
was modifying in sched.h (really annoying have to recompile an entire
kernel multiple times in a vmware vm, albiet thats not a good reason to
move it, I'm just wondering why they are split in 2 different files)

thanks,

shaya 


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

* Re: Linux Scheduler and Compilation
  2001-10-25 19:06   ` Shaya Potter
@ 2001-10-25 19:16     ` Richard B. Johnson
  2001-10-25 23:07     ` george anzinger
  1 sibling, 0 replies; 6+ messages in thread
From: Richard B. Johnson @ 2001-10-25 19:16 UTC (permalink / raw)
  To: Shaya Potter; +Cc: José Luis Domingo López, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=US-ASCII, Size: 792 bytes --]

On 25 Oct 2001, Shaya Potter wrote:

> On Thu, 2001-10-25 at 16:37, José Luis Domingo López wrote:
> > On Thursday, 25 October 2001, at 18:20:25 +0300,
> > Omer Sever wrote:
[SNIPPED...]
> 
> On that note, why is add_to_runqueue() in sched.c and
> del_from_runqueue() in sched.h?

add_to_runqueue() is a function in sched.c
del_from_runqueue() is an macro. Macros generally go into header files.

These kinda need to be associated with sched.c because of:
	static LIST_HEAD(runqueue_head);
	plus some spinlocks.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

    I was going to compile a list of innovations that could be
    attributed to Microsoft. Once I realized that Ctrl-Alt-Del
    was handled in the BIOS, I found that there aren't any.



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

* Re: Linux Scheduler and Compilation
  2001-10-25 15:20 Linux Scheduler and Compilation Omer Sever
@ 2001-10-25 20:37 ` José Luis Domingo López
  2001-10-25 19:06   ` Shaya Potter
  2001-10-25 21:48 ` J . A . Magallon
  1 sibling, 1 reply; 6+ messages in thread
From: José Luis Domingo López @ 2001-10-25 20:37 UTC (permalink / raw)
  To: linux-kernel

On Thursday, 25 October 2001, at 18:20:25 +0300,
Omer Sever wrote:

>      I have a project on Linux CPU Scheduler to make it Fair Share
> Scheduler.I will make some changes on some files such as sched.c vs...I will
> want to see the effect ot the change but recompilation of the kernel takes
> about half an hour on my machine.How can I minimize this time?Which part
> should I necessarily include in my config file for the kernel to minimize
> it?
> 
make is your friend: it will only recompile those files that changed from
the last compilation. If you modify some #includes in the code, I believe
you will have to also run "make dep" before, to get dependencies right.

Another approach would be to compile the kernel on another different
machine, should you have one more powerful that the one you expect to try
the kernel on.

-- 
José Luis Domingo López
Linux Registered User #189436     Debian Linux Woody (P166 64 MB RAM)
 
jdomingo EN internautas PUNTO org  => ¿ Spam ? Atente a las consecuencias
jdomingo AT internautas DOT   org  => Spam at your own risk


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

* Re: Linux Scheduler and Compilation
  2001-10-25 15:20 Linux Scheduler and Compilation Omer Sever
  2001-10-25 20:37 ` José Luis Domingo López
@ 2001-10-25 21:48 ` J . A . Magallon
  1 sibling, 0 replies; 6+ messages in thread
From: J . A . Magallon @ 2001-10-25 21:48 UTC (permalink / raw)
  To: Omer Sever; +Cc: linux-kernel


On 20011025 Omer Sever wrote:
>     I have a project on Linux CPU Scheduler to make it Fair Share
>Scheduler.I will make some changes on some files such as sched.c vs...I will
>want to see the effect ot the change but recompilation of the kernel takes
>about half an hour on my machine.How can I minimize this time?Which part
>should I necessarily include in my config file for the kernel to minimize
>it?
>

Try this (and please tell me if it is worthy or I have to send it to trash)

--- linux-2.4.1-ac14/Makefile.org   Thu Feb 15 15:47:42 2001
+++ linux-2.4.1-ac14/Makefile   Thu Feb 15 15:48:11 2001
@@ -241,6 +241,9 @@
 
 
 include arch/$(ARCH)/Makefile
+
+CC:=$(CC)
+CPP:=$(CPP)
 
 export CPPFLAGS CFLAGS AFLAGS
 

--
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.2 (Cooker) for i586
Linux werewolf 2.4.14-pre1-beo #1 SMP Thu Oct 25 16:19:19 CEST 2001 i686

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

* Re: Linux Scheduler and Compilation
  2001-10-25 19:06   ` Shaya Potter
  2001-10-25 19:16     ` Richard B. Johnson
@ 2001-10-25 23:07     ` george anzinger
  1 sibling, 0 replies; 6+ messages in thread
From: george anzinger @ 2001-10-25 23:07 UTC (permalink / raw)
  To: Shaya Potter; +Cc: José Luis Domingo López, linux-kernel

Shaya Potter wrote:
> 
> On Thu, 2001-10-25 at 16:37, José Luis Domingo López wrote:
> > On Thursday, 25 October 2001, at 18:20:25 +0300,
> > Omer Sever wrote:
> >
> > >      I have a project on Linux CPU Scheduler to make it Fair Share
> > > Scheduler.I will make some changes on some files such as sched.c vs...I will
> > > want to see the effect ot the change but recompilation of the kernel takes
> > > about half an hour on my machine.How can I minimize this time?Which part
> > > should I necessarily include in my config file for the kernel to minimize
> > > it?
> > >
> > make is your friend: it will only recompile those files that changed from
> > the last compilation. If you modify some #includes in the code, I believe
> > you will have to also run "make dep" before, to get dependencies right.
> 
> Except, as I discovered recently in playing around with the scheduler,
> if you modify sched.h, you basically have to recompile the entire
> kernel, as it seems everything depends on it.
> 
> On that note, why is add_to_runqueue() in sched.c and
> del_from_runqueue() in sched.h?  del_from_runqueue being the only func I
> was modifying in sched.h (really annoying have to recompile an entire
> kernel multiple times in a vmware vm, albiet thats not a good reason to
> move it, I'm just wondering why they are split in 2 different files)
> 
Somewhere back around 2.2.15 (or so) a change was made that has the smp
cpu start up code removing the start up task from the run list.  I think
you will find the del_from_runqueue() is only used in this case.  It
could have been done in init_idle() in sched.c (in fact the code is
there) but it is also done prior to this call.  Sigh...

George

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

end of thread, other threads:[~2001-10-25 23:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-25 15:20 Linux Scheduler and Compilation Omer Sever
2001-10-25 20:37 ` José Luis Domingo López
2001-10-25 19:06   ` Shaya Potter
2001-10-25 19:16     ` Richard B. Johnson
2001-10-25 23:07     ` george anzinger
2001-10-25 21:48 ` J . A . Magallon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.