Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: 4k read buffer is too small

by DrHyde (Prior)
on Jun 17, 2008 at 10:08 UTC ( [id://692456]=note: print w/replies, xml ) Need Help??


in reply to Re: 4k read buffer is too small
in thread 4k read buffer is too small

That code surprises me. I would have at least expected it to be equal to the page size. And that varies with architecture. On Alpha, for instance, it's 8K.

Replies are listed 'Best First'.
Re^3: 4k read buffer is too small
by Steve_p (Priest) on Jun 17, 2008 at 11:55 UTC
    It surprises me more that there's a magic number like that buried down in the core. It appears that you should be able to configure that in your own custom IO layer and set the size as big as you wish.
Re^3: 4k read buffer is too small
by voeckler (Sexton) on Jun 17, 2008 at 18:56 UTC

    ACK: I would have expected a getpagesize() call, since pages are often natural boundaries. Or at least a reference to a BUFSIZ that many stdio's define - which happens to be, after several indirections, come to 8k on my x86_64 Linux.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2025-07-10 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.