It does.

All the cache contents get jetisoned as they over-age (hard limit of 1 hour).
Threads get cleaned up once the transaction is complete. owserver makes each
transaction require a new connection (and a few second timeout), so flooding
with half-completed requests isn't possible.

As a practical example, I've run owserver for days on an embedded router with
100 devices and no memory problems. (16MB ram total, no swap).

The only real concerns would be memory leaks. I don't see any but would welcome
people's experiences.

So:
Program size: O(0)
Cache size O(recent devices) + O(recent directory lengths) + O(recent device
properties)

Paul Alfille

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Jan Kandziora
Sent: Tue 10/3/2006 4:17 AM
To: [email protected]
Subject: Re: [Owfs-developers] How many single switches can be connected?(FWD)
 
Am Dienstag, 3. Oktober 2006 03:07 schrieb Alfille, Paul H.,M.D.:
> B. Cache will fill with more devices. It is flushed automatically, and
> degrades gracefully when full. Currently full is triggered my memory
> allocation failure, but we could be more elegant if required. (Memory is
> part of the general pool, and memory allocation failure will upset other
> OWFS functions).
>
Hmmm...malloc() will *never* fail on standard linux distributions, apart from 
exhausting the process address space -- 3GB on most i386 distributions.
(This may be changed with echo 2 >/proc/sys/vm/overcommit_memory by the system 
administrator).

Instead, if virtual memory is exhausted, random processes get killed. It would 
be a wise idea that owfs, as a long-running background process, had some 
internal limit in its memory usage.

Kind regards

        Jan
-- 
"I'm not a programmer, but I play one at Microsoft."

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

<<winmail.dat>>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to