From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3e3949298ed3b36 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: High CPU in tasking Date: Thu, 24 Jun 2004 20:25:09 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <2k0fllF160eotU1@uni-berlin.de> NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1088108709 4085 217.17.192.34 (24 Jun 2004 20:25:09 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 24 Jun 2004 20:25:09 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: g2news1.google.com comp.lang.ada:1863 Date: 2004-06-24T20:25:09+00:00 List-Id: * Nick Roberts wrote: > I'm obviously only guessing at the details of your application, Lutz, but > gleaning what I can, I'm surprised that you seem to be talking about one > buffer. Yep. The goal of the job is to decode a single data source and redistribute the gained data to an unknown number of parallel readers with different speeds. > Do you not have a separate buffer for each reader (of a single > demultiplexed stream)? Yep. I do have a ringbuffer with a single "writer" and an indetermined number of "readers". The data structure is a protected type with an entry family for all readers. > Also, what were the priorities of the tasks? All the same. I'm currently testing with a data source of 1GB/h and eight data sources of about half the rate. Each data source allocates a ringbuffer. There are controlling tasks: A logger task writing to /dev/log, because syslog(3) is not thread safe, and a supervisor task for handling the commands on each the TCP session.