[PVFS-users]
bruno.agneray at hp.com
bruno.agneray at hp.com
Fri Sep 17 06:20:21 EDT 2004
Hi,
On a rocks cluster 3.2.0
(pvfs-kernel-1.6.0-1,pvfs-1.6.0-1,contrib-pvfs-config-1.6.0-1),
I compiled the following program that save 'n' doubles in a file :
go.c _______________________________________________________________________
#include <stdio.h>
#include <stdlib.h>
void main(int argc, char **argv)
{
FILE *out_file;
long nblocs=0;
long n;
double *tab;
if (argc != 2)
{
printf ("Syntax : %s [size]\n", argv[0]);
exit (-1);
}
else
{
n = atol (argv[1]);
}
tab = (double*) calloc(n,sizeof(double));
if (tab==NULL)
{
printf("Cannot allocate tab\n");
exit (-1);
}
out_file=fopen("out","w");
if (out_file == NULL)
{
printf ("Cannot open file out\n");
exit (-1);
}
nblocs=fwrite(tab,sizeof(double),n,out_file);
printf ("%ld blocs saved\n", nblocs);
fclose(out_file);
}
________________________________________________________________________________
To compile :
cc -o go go.c
To execute :
go 1000000
The problem :
When executing the file in pvfs, when n is greater than 1048575, the out
file is empty.
There is no problem on NFS or local file system :
(workdir : NFS, /mnt/pvfs : PVFS)
$ df -k /mnt/pvfs /workdir
Filesystem 1K-blocks Used Available Use% Mounted on
tantale-1-0:/pvfs-meta
2963523328 153168896 2810354432 6% /mnt/pvfs
tantalems:/work 987841120 118933340 818728356 13% /work
$ cd /mnt/pvfs
$ /mnt/pvfs/go 1000000
1000000 blocs saved
$ ls -l out
-rw-r--r-- 1 support gerance 8000000 Sep 14 18:26 out
$ /mnt/pvfs/go 1048576
0 blocs saved
$ ls -l out
-rw-r--r-- 32767 support gerance 0 Sep 15 11:42 out
$ cd /workdir
$ /mnt/pvfs/go 1000000
1000000 blocs saved
$ ls -l out
-rw-r--r-- 1 support gerance 8000000 Sep 14 18:27 out
$ /mnt/pvfs/go 1048576
1048576 blocs saved
$ ls -l out
-rw-r--r-- 1 support gerance 8388608 Sep 14 18:27 out
The incorrect number of link on the file "out" on pvfs is not systematic.
Is this problem solved in pvfs-1.6.2 ?
Regards,
Bruno
More information about the PVFS-users
mailing list