From: "Nemholt, Jesper Frank" <JesperFrank.Nemholt () compaq ! com>
To: tru64-unix-managers
Subject: AdvFS DirectIO from Perl
Date: Mon, 08 Oct 2001 17:15:52 +0000 [thread overview]
Message-ID: <102653641821683.tru64-unix-managers.marc@archive.invalid> (raw)
Hi!
I was just putting together a small Perl script to test performance of
read/write, DirectIO, sync/async, block size, file size etc. etc. on CFS in
Tru64 v5.x, and I ran into the following error with the Perl present by
default (Perl 5.5.3) on Tru64 v5.1 :
Argument "O_DIRECTIO" isn't numeric in bit_or at ./benchmark.pl line 41.
Line 40 and 41 are :
open(HANDLE, "> $filename") or die "open $filename: $!";
sysopen(HANDLE, $filename, O_RDWR|O_DIRECTIO) or die "sysopen $filename:
$!";
My use statements are :
use Fcntl;
use IO::Handle;
Looks like Perl's sysopen() or the libraries/modules behind don't know of
the O_DIRECTIO flag. Is it possible to do in some other way with the default
Perl, or should I upgrade (and will a upgrade to 5.6.1 help) ?
/Jesper
reply other threads:[~2001-10-08 17:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox