This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: memory allocation


Jonathan Larmour wrote:
> 
> Jing Luo wrote:
> >
> > Hi,
> >
> > I haven't got answer for the memory allocation and performance for eCos.
> >
> > For the MAX multi-thread eCos supported, I am not sure that eCos can support
> > unlimited thread concurrently.
> >
> > I got the report on internet, it said the max thread priorities eCos can
> > support is 32. I don't know if it is changed.
> > http://www.dedicated-systems.com/encyc/buyersguide/rtos/Object153.html
> 
> Actually this is an interesting point as I see the basis for why it says
> that: CYGNUM_KERNEL_SCHED_PRIORITIES in the kernel configuration is limited
> to 1 to 32. But for the mlqueue scheduler that restriction should not
> apply. You could just remove the "legal_values" line I'm pretty sure.

Actually I now think I'm telling porkies.

As it stands, it is restricted to 32 priorities (but you can have as many
threads as you like at those priorities).

The complication is the definition of cyg_sched_bitmap. But this is only
used in a small number of places and it would be very easy to write an
alternative but obviously less efficient implementation for when
CYGNUM_KERNEL_SCHED_PRIORITIES>32.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]