<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>As Mark alluded to, I'm not a Perl person at all :)  In fact I used this analyzer as a way to learn some Perl syntax. So I'm looking for advice on how to make it better. Personally I thought about using Python since I know that much better but I wanted to experiment with Perl.<br><br>I'm keeping some information around in arrays for the next stage of development - I just haven't gotten there yet. I'm working on a couple of new things - creating a histogram of the IO pattern and creating an IO simulator of the strace file. But, it's probably a good idea to go back and fix these bugs.<br><br>I'm traveling and won't be able to get to my desktop until this weekend. Then I will see what I can do. Until then, if anyone has any suggestions, go for it. It if works, let me have a patch or tell
 me what to fix. Also, if anyone has any suggestions on better ways of storing data rather than the current method (arrays) - I'm all ears. Any thoughts on periodically dumping the arrays to a file or even just dumping the data to files as it parses? Might be slow, but it shouldn't then choke on large files. Could be a command line switch.<br><br>Mark - again thanks for jumping in for me. I really appreciate it.<br><br>Jeff<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">----- Original Message ----<br>From: Mark Hahn <hahn@mcmaster.ca><br>To: Eric.L <eric.l.2046@gmail.com><br>Cc: beowulf@beowulf.org<br>Sent: Tuesday, September 16, 2008 12:13:53 AM<br>Subject: Re: [Beowulf] stace_analyzer.pl can't work.<br><br>
>    It throws an error likes:Argument "" isn't numeric in addition (+) at<br>> ./strace_analyzer.pl line 310, <> line 409105.<br>>    Have you experienced this? and resolved?<br><br>I think the parser could be improved.  in this case, it seems to be <br>choking on lines like:<br>23:34:13.502857 read(7, 0xbfffc670, 32) = -1 EAGAIN (Resource temporarily unavailable)<br><br>on 310, junk="unavailable" - the code should handle -1 specially,<br>since it shouldn't be accumulated to $ReadBytesTotal.<br><br>> BTW:I've install the perl module strict and Getopt::long, and the tool<br>> exhausts my laptop's memory(1.2G) while running.<br><br>I guess the code isn't intended to profile >409105-line traces on a laptop ;) <br>it's a WIP, and stores a lot of stuff that it doesn't currently use, and<br>could probably be stored more compactly...<br><br>regards, mark
 hahn.<br>_______________________________________________<br>Beowulf mailing list, <a ymailto="mailto:Beowulf@beowulf.org" href="mailto:Beowulf@beowulf.org">Beowulf@beowulf.org</a><br>To change your subscription (digest mode or unsubscribe) visit <a href="http://www.beowulf.org/mailman/listinfo/beowulf" target="_blank">http://www.beowulf.org/mailman/listinfo/beowulf</a><br></div></div></div></body></html>