Strange error of current write on NFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have the following perl script that write to a nfs system. The
output doesn't have all the number from 1 to 10. But if I try the
program on a local disk, I see all the number from 1 to 10.

I'm not sure if this is an NFS problem (It may be a perl problem).
Could any guru here let me know if this is possible due to an NFS
problem?

$ cat main.pl
#!/usr/bin/env perl

use strict;
use warnings;

use Parallel::ForkManager;

open OUT, ">main.txt";

my $pm = new Parallel::ForkManager(5);

foreach my $n (1..10) {
  my $pid = $pm->start and next;
  print $n, "\n";
  sleep rand(1);
  print OUT $n;
  $pm->finish;
}

$pm->wait_all_children;

$ ./main.pl
1
3
4
5
2
7
6
8
10
9
$ cat main.txt
12690

-- 
Regards,
Peng
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux