Hi,
I'm trying to create threads [pthread] to access a file which is
stored on pvfs2. Each thread seeks to a random position and reads
100KB of data and repeat this process m times. n is the thread count.
All of the threads operates on the same file. Here is the pseudo code:

main:
         for 1 to n
            create_pthread (thread_func);
        for 1 to n
            join_thread;

thread_func:
        filesize=1GB
        offset= rand (0 - 1GB)
        pvfs_open ("/pvfs2/1GBfile");
        for i to m
       {
              pvfs_lseek (offset);
              pvfs_read (100K);
        }

When I executed the programme with n=1 it works correctly. However
when n>1 I got the error:
===================================
[14:50:19.904834] critical BMI failure (null callback)
th: src/io/flow/flowproto-bmi-trove/flowproto-multiqueue.c:1701:
bmi_to_mem_callback_fn: Assertion `q_item->parent->state !=
FLOW_COMPLETE' failed.
Aborted
===================================
What may be the problem?

Thanks very much.

--
hamza

_______________________________________________
PVFS2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to