[ns] patch: fast, simple and bugfree scheduler

Neundorf Alexander Alexander.Neundorf.extern@icn.siemens.de
Thu, 18 Oct 2001 16:16:06 +0200



--
Free Dmitry Sklyarov ! 
http://www.freesklyarov.org

> -----Original Message-----
> From:	Lloyd Wood [SMTP:l.wood@eim.surrey.ac.uk]
> Sent:	Thursday, October 18, 2001 4:03 PM
> To:	Neundorf Alexander
> Cc:	'ns-users@isi.edu'
> Subject:	Re: [ns] patch: fast, simple and bugfree scheduler
> 
> On Thu, 18 Oct 2001, Neundorf Alexander wrote:
> 
> > I'm using ns 2.1b7 and found that the default Calendar scheduler
> > is buggy (after some time it starts consuming megabytes of memory
> > and the time stops)
> 
> Even once you've applied the later-than-b7 memory-leak patches from:
> http://www.isi.edu/cgi-bin/nsnam/cvsweb/ns-2/scheduler.cc
> (1.56 onwards)?
> 
	Didn't apply the patches, but they don't seem calendar-scheduler related.

> (and if so, how do you easily demonstrate this?)
> 
	Don't know. It happened with a very modified version of ns after many many events.
	CPU went to 100%, a huge chunk of memory was allocated, and after some time (some minutes) I had a core dump.
	I found it using a debugger.

> > and that the simple and bugfree list scheduler
> > is dog slow.
> 
> yup.
> 
> > So I hacked a fast, simple and bugfree scheduler, here it is:
> 
> cool.
> 
> L.
> 
> bugfree, eh? brave words...
> 
	:-)

	These are so few lines, they can't contain bugs.

	Alex