Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!

by NeilF (Sexton)
on Jan 02, 2006 at 15:10 UTC ( #520404=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!
in thread Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!

Thanks... Interesting stuff! They do seem to talk specifically about IO processes! Is File::ReadBackwards a standard library/module?? ie: Will it exist on sites?
  • Comment on Re^4: Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!

Replies are listed 'Best First'.
Re^5: Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!
by BrowserUk (Patriarch) on Jan 02, 2006 at 15:44 UTC
    They do seem to talk specifically about IO processes!

    Hmm. As a phrase "IO processes" doesn't make a lot of sense.

    The lines you see, and the numbers in the first column under the heading "#" in Filemon, are IO events, not processes. The process IDs are appended to the filenames in the third column under the heading "Process". The best I can suggest to you is that you ask them by what measure they are deciding that you are using to much resource.

    File::ReadBackwards isn't a standard module, but it is pure perl, so it is easy to install it in the same place as your scripts live, and use use lib './lib'; to allow it to be found. Assuming your scripts live in a subdirectory /cgi-bin, the you would create a directory structure and copy Backwards.pm from CPAN into it as follows:

    /cgi-bin/lib/File/Backwards.pm

    Then in your script you would have

    use lib './lib'; use File::Backwards;

    I seem to remember someone posting a more thorough explanation of this somewhere, but I could not find it via supersearch. Maybe someone else remembers it and will post a link.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^5: Perl always reads in 4K chunks and writes in 1K chunks... Loads of IO!
by wfsp (Abbot) on Jan 02, 2006 at 16:08 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://520404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-05-22 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?