Hello, I've done some time measurements of program runs on Bluebottle, and I'm not sure that Input.Time() works correctly. I don't know if this fact is important, but my program uses the gc a lot. I find a discrepancy of ten times, more or less, between my watch (~ 60 s) and Input.Time() (6 s). My config string contains the item 'MHz="600"', which is right. Any ideas ? Regards. Gérard
Gérard Meunier wrote:
I've done some time measurements of program runs on Bluebottle, and I'm not sure that Input.Time() works correctly. I don't know if this fact is important, but my program uses the gc a lot. I find a discrepancy of ten times, more or less, between my watch (~ 60 s) and Input.Time() (6 s). My config string contains the item 'MHz="600"', which is right. Any ideas ?
The current garbage collector disables interrupts, so the timer won't run during that time. -- Pieter
Thanks Pieter, Is there a way to measure true time yet? Gérard ----- Original Message ----- From: Pieter Muller <pieter.muller@alumni.ethz.ch> To: <oberon@inf.ethz.ch> Sent: Thursday, January 23, 2003 11:09 PM Subject: Re: [Oberon] Input.Time
Gérard Meunier wrote:
I've done some time measurements of program runs on Bluebottle, and I'm not sure that Input.Time() works correctly. I don't know if this fact is important, but my program uses the gc a lot. I find a discrepancy of ten times, more or less, between my watch (~ 60 s) and Input.Time() (6 s). My config string contains the item 'MHz="600"', which is right. Any ideas ?
The current garbage collector disables interrupts, so the timer won't run during that time.
-- Pieter
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
----- Original Message ----- From: Pieter Muller <pieter.muller@alumni.ethz.ch>
Aos needs an improved garbage collector.
BTW, there would be here the opportunity to add a SYSTEM.DISPOSE. Ok, it's a dangerous instruction. But it's sometimes useful, and SYSTEM is a dangerous module anyway. Gérard
Hello Pieter, What GC algorithm is it currently using and which modules implement it? And how was this dealt with in the Gneiss project? Regards, John M. Drake --- Pieter Muller <pieter.muller@alumni.ethz.ch> wrote:
G�rard Meunier wrote:
Is there a way to measure true time yet?
AosClock.Get, but the resolution is only 1s!
Aos needs an improved garbage collector.
-- Pieter
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
John Drake wrote:
What GC algorithm is it currently using and which modules implement it? And how was this dealt with in the Gneiss project?
The garbage collector is similar to the ETH Oberon collector. All processors are stopped and a mark-sweep collection done. It is in AosHeap.Mod. An incremental or parallel garbage collector would be better for Aos. Gneiss was a microkernel for distributed message-passing systems. It didn't have automatic memory management. cheers -- Pieter
Hi together! Aos would be very usefull for industrial control. Are there any plans to enhance the GC and not to disable interrupts? Best regards Josef Sedlacek Pieter Muller wrote:
Gérard Meunier wrote:
I've done some time measurements of program runs on Bluebottle, and I'm not sure that Input.Time() works correctly. I don't know if this fact is important, but my program uses the gc a lot. I find a discrepancy of ten times, more or less, between my watch (~ 60 s) and Input.Time() (6 s). My config string contains the item 'MHz="600"', which is right. Any ideas ?
The current garbage collector disables interrupts, so the timer won't run during that time.
-- Pieter
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
-- Company: Radiar, Dr. J. Sedlacek, CH-7554 Sent Tel: +41 (81) 860 06 60 Fax: +41 (81) 860 06 62
Pieter, Does the garbage collector that Esmertec uses for their hard real-time Java systems have any utility (correspondence) for AOS? -Doug Pieter Muller wrote:
Josef Sedlacek wrote:
Aos would be very usefull for industrial control. Are there any plans to enhance the GC and not to disable interrupts?
Personally I can not work on this soon, but perhaps someone at the ETH will be able to.
-- Pieter
-- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems http://www.lists.inf.ethz.ch/mailman/listinfo/oberon
Well XOberon is also a hard real-time system and it's freely available. Incidentally there's no syntactic reason for Oberon/2 to only be cooperatively multitasked. That's just the way Oberon systems have been traditionally implemented. See: http://www.xo2.org/ http://www.ifr.mavt.ethz.ch/research/xoberon/ XOberon implements an "interruptible mark and sweep" garbage collection algorithm. (See http://www.xo2.org/Docs/movic98.pdf). This can work because "real time tasks are inhibited by the compiler from allocating dynamic data". (See same document). I'm not sure how to do this in BlueBottle unless it's possible to have "shared locks". In other words is it possible to have a lock that allows a set of processes to run instead of a single process? Of course this would be inherently unsafe unless you modified the compiler to, as in XOberon, not allow "realtime" active objects to allocate memory. For anyone interested in implementing an incremental GC the "train" algorithm looks quite promising. http://research.sun.com/projects/gcspy/printezis-garthwaite-ismm2002.pdf http://www.daimi.aau.dk/~beta/Papers/Train/train.html Briefly instead of just allocating blocks in one heap, blocks are allocated in fixed sized regions called "cars". These cars are linked to form "trains". You can incrementally collect one car at a time. Regards, John M. Drake --- "Douglas G. Danforth" <danforth@greenwoodfarm.com> wrote:
Pieter, Does the garbage collector that Esmertec uses for their hard real-time Java systems have any utility (correspondence) for AOS?
-Doug
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
participants (5)
-
Douglas G. Danforth -
Gérard Meunier -
John Drake -
Josef Sedlacek -
Pieter Muller