Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | ECOS max number of threads

There are 8 messages in this thread.

You are currently looking at messages 0 to 8.

ECOS max number of threads - Steve - 06:55 30-09-04



Hello,
   We are using ECOS for our embedded system. We currently use 250 threads
in the system. We would like to use more than 256, but we think 256 is the
maximum for ECOS. Is there any way to increase this to at least 1024?

Steve





Re: ECOS max number of threads - David Brown - 08:35 30-09-04

"Steve" <m...@sgwest.com> wrote in message
news:ZCR6d.393037$8_6.158062@attbi_s04...
> Hello,
>    We are using ECOS for our embedded system. We currently use 250 threads
> in the system. We would like to use more than 256, but we think 256 is the
> maximum for ECOS. Is there any way to increase this to at least 1024?
>

Can you tell us what you use 250 threads for?




Re: ECOS max number of threads - Grant Edwards - 11:00 30-09-04

On 2004-09-30, Steve <m...@sgwest.com> wrote:

>    We are using ECOS for our embedded system.

I presume you mean eCos?

> We currently use 250 threads in the system. We would like to
> use more than 256, but we think 256 is the maximum for ECOS.

Um, why do you think that?  I don't see anything in the source
code that looks like a limit.  I don't see anything in the
ecos.ecc file that looks like it controls the number of
threads.  The thread structures are allocated in user code, and
kept on linked lists by the kernel, so I don't even see why
there would be a limit.

> Is there any way to increase this to at least 1024?

The eCos mailing list is probably the best place to ask.

-- 
Grant Edwards                   grante             Yow!  I just got my PRINCE
                                  at               bumper sticker... But now I
                               visi.com            can't remember WHO he is...

Re: ECOS max number of threads - Steve - 12:09 30-09-04

We think there is a limit of 256 threads because ECOS does not seem to
execute the threads over 256 and the system slows down to a crawl. It is
possible that the ECOS Stack is a problem with so many open sockets.


Steve



Re: ECOS max number of threads - Grant Edwards - 13:58 30-09-04

On 2004-09-30, Steve <m...@sgwest.com> wrote:

[It's spelled "eCos".]

> We think there is a limit of 256 threads because ECOS does not
> seem to execute the threads over 256 and the system slows down
> to a crawl.

There may be, but I couldn't find it in the documentation,
configuration, or source code.

> It is possible that the ECOS Stack is a problem with so many
> open sockets.

By "stack" you mean the TCP/IP network stack?  Which one are
you using?

IIRC, there _is_ a hard limit on the number of open file
descriptors (hence open sockets) and on the maximum number of
"pending network events" or somesuch.

-- 
Grant Edwards                   grante             Yow!  Make me look like
                                  at               LINDA RONSTADT again!!
                               visi.com            

Re: ECOS max number of threads - Steve - 14:38 30-09-04

Ok it's eCos. Yes I mean TCPIP Stack. I notice quite a few select failures
when the threads get over 256. I have the socket/file/pending count set to
4096 and 40 megs of net memory. I don't see any socket failures just select
receive failures. We use free bsd tcpip.

Steve



Re: ECOS max number of threads - Grant Edwards - 14:58 30-09-04

On 2004-09-30, Steve <m...@sgwest.com> wrote:

> Ok it's eCos.

Thanks. :)

> Yes I mean TCPIP Stack. I notice quite a few select failures
> when the threads get over 256. I have the socket/file/pending
> count set to 4096 and 40 megs of net memory. I don't see any
> socket failures just select receive failures. We use free bsd
> tcpip.

I don't _know_ of any intentional limit anywhere on the number
of threads.  Try the eCos mailing list.

-- 
Grant Edwards                   grante             Yow!  HELLO KITTY gang
                                  at               terrorizes town, family
                               visi.com            STICKERED to death!

Re: ECOS max number of threads - Dan S. - 00:26 01-10-04

On 2004-09-30 06:55:53 -0400, "Steve" <m...@sgwest.com> said:

> Hello,
>    We are using ECOS for our embedded system. We currently use 250 threads
> in the system. We would like to use more than 256, but we think 256 is the
> maximum for ECOS. Is there any way to increase this to at least 1024?
> 
> Steve

Just a quick stab, but did you confirm FD_SETSIZE to be what you need ?