Brad.Walker has asked for the wisdom of the Perl Monks concerning the following question:
$random_data is a 1MB string and $test_file is the file handle that was opened up using the 3 argument version of open.print $test_file $random_data
The problem that I'm encountering is the Perl interpreter is breaking this large write into 4K writes at the system call level. I don't really want this because I'm trying to do some NFS performance measurements and the breakup of writes is causing me problems. I know that I could use syswrite, but was hoping to stay away from this.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: writing to a file using print
by ikegami (Patriarch) on Feb 13, 2007 at 04:53 UTC | |
|
Re: writing to a file using print
by dorko (Prior) on Feb 13, 2007 at 04:40 UTC | |
by geekphilosopher (Friar) on Feb 13, 2007 at 06:50 UTC | |
by dorko (Prior) on Feb 13, 2007 at 15:35 UTC |