Does the same error/bug exist for ow_ds9097U.c ?

On my WRT54G router I get really bad search time. 15 devices are listed in
minimum 3.3seconds (owserver + owfs). 100 loops will take about 5 minutes!

 

/Christian

 

 

[EMAIL PROTECTED]:~# cat /tmp/1wire/bus.0/system/adapter/name.ALL 

DS9097U

[EMAIL PROTECTED]:~# cat apa.sh

#!/bin/sh

for i in 1 2 3 4 5 6 7 8 9 10 ; do ls /tmp/1wire/uncached ; done

[EMAIL PROTECTED]:~# time -v ./apa.sh 

10.061847000800  10.5D1947000800  10.E2C746000800  alarm

10.1A9246000800  10.6D0150000800  10.E54347000800  bus.0

10.233B40000800  10.762047000800  1F.7DC202000000  simultaneous

10.2BD346000800  10.A22840000800  FF.710200000100

10.4D8746000800  10.B3E166000800  FF.720200000100

…(repeated 10 times)

       Command being timed: "./apa.sh"

        User time (seconds): 0.10

        System time (seconds): 0.19

        Percent of CPU this job got: 0%

        Elapsed (wall clock) time (h:mm:ss or m:ss): 0m 37.17s

        Average shared text size (kbytes): 0

        Average unshared data size (kbytes): 0

        Average stack size (kbytes): 0

        Average total size (kbytes): 0

        Maximum resident set size (kbytes): 0

        Average resident set size (kbytes): 0

        Major (requiring I/O) page faults: 258

        Minor (reclaiming a frame) page faults: 417

        Voluntary context switches: 0

        Involuntary context switches: 0

        Swaps: 0

        File system inputs: 0

        File system outputs: 0

        Socket messages sent: 0

        Socket messages received: 0

        Signals delivered: 0

        Page size (bytes): 4096

        Exit status: 0

 

 

 

 

  _____  

Från: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] För Paul Alfille
Skickat: den 19 november 2006 00:54
Till: [email protected]
Ämne: Re: [Owfs-developers] Need for Speed... (scanning speed)

 

Ahha!

It looks like a logic error -- if no device is found, the code still tests
for a CRC error in the serial number, and probably asks for retries.

Fixed in the CVS.

Paul

On 11/18/06, Paul Alfille <[EMAIL PROTECTED]> wrote:

It will take some looking (?check stats?) but I really suspect the problem
is with a timeout waiting for a response with no devices. Can you compare
0,1,2 devices on the bus?

Paul

On 11/18/06, Jan Kandziora <[EMAIL PROTECTED]> wrote:

Am Samstag, 18. November 2006 22:52 schrieb Paul Alfille:
> That's not good.
>
If 160ms/scan is the worst time you measured, it means there's hope I don't
need to change parts of the machine design. Scanning locks connected to an 
USB adaptor is quite faster (at least on my development PC), but the machine
should use the DS2482-800 instead.

I will setup a stable measurement environment on the actual platform around
next wednesday. 


> If we can't resolve it this way, we may have to add a special "file" that
> checks for ANY device on the bus rapidly.
>
Hm. I don't understand where the difference would be. Could you explain? 

My idea was, the problem lies somewhere in the timing of onewire or i2c, or
in
the timing requirements of the host OS. To achieve a rapid scan of a
(sub)bus, one has to issue the "triplet" command rapidly. This could exhaust

the process' timeslice and such, the owserver etc. is getting "niced". Maybe
a static priority for owserver helps? I haven't checked so far.

Kind regards

        Jan
--
Alles Schwere kommt von oben... 

-------------------------------------------------------------------------
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
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
&p=sourceforge&CID=DEVDEV 
_______________________________________________ 
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
<https://lists.sourceforge.net/lists/listinfo/owfs-developers> 

 

 

-------------------------------------------------------------------------
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