How to run stxxl on /lustre?

2014-01-22
2014-01-22
  • Arman Khalatyan

    Arman Khalatyan - 2014-01-22

    Hi,
    I just try to run my code on lustrefs it gives me:
    arm2arm@leibniz bin]$ ./test_stxxl

    [STXXL-MSG] STXXL v1.4.0 (prerelease/Debug)
    [STXXL-MSG] Error allocating disk '/lustre/arm2arm/tstripe/stxxl', space:
    9536 MiB, I/O implementation: syscall queue=0 unlink_on_open
    terminate called after throwing an instance of 'stxxl::io_error'
    what(): Error in virtual void stxxl::ufs_file_base::lock() :
    fcntl(,F_SETLK,) path=/lustre/arm2arm/tstripe/stxxl fd=5 : Function not
    implemented
    Aborted

    my .stxxl:
    disk=/lustre/arm2arm/tstripe/stxxl,10G,syscall unlink

    Is it possible to run stxxl on lustre mounted without "-o flock"?
    Thanks,
    Arman.

     
    • Arman Khalatyan

      Arman Khalatyan - 2014-01-22

      Ok I will answer to my question:
      the solution is boostfd:

      disk=/lustre/arm2arm/tstripe/stxxl,10G,boostfd direct=try

      and all is working.
      stxxl rocks!
      a.

      On Wed, Jan 22, 2014 at 11:40 PM, Arman Khalatyan arm2arm@users.sf.netwrote:

      Hi,
      I just try to run my code on lustrefs it gives me:
      arm2arm@leibniz bin]$ ./test_stxxl

      [STXXL-MSG] STXXL v1.4.0 (prerelease/Debug)
      [STXXL-MSG] Error allocating disk '/lustre/arm2arm/tstripe/stxxl', space:
      9536 MiB, I/O implementation: syscall queue=0 unlink_on_open
      terminate called after throwing an instance of 'stxxl::io_error'
      what(): Error in virtual void stxxl::ufs_file_base::lock() :
      fcntl(,F_SETLK,) path=/lustre/arm2arm/tstripe/stxxl fd=5 : Function not
      implemented
      Aborted

      my .stxxl:
      disk=/lustre/arm2arm/tstripe/stxxl,10G,syscall unlink

      Is it possible to run stxxl on lustre mounted without "-o flock"?
      Thanks,
      Arman.


      How to run stxxl on /lustre?http://sourceforge.net/p/stxxl/discussion/446473/thread/acfcd708/?limit=25#8b5d

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/stxxl/discussion/446473/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Timo Bingmann

    Timo Bingmann - 2014-01-22

    Hmm, good that you got it working with boostfd.
    That's okay, but there is no reason to not use syscall directly.
    The locking is merely advisory, so that one cannot start two stxxl processes using the same files; the locks are not important to any algorithms.

    You might want to test just removing (commenting) the corresponding lines in stxxl::ufs_file_base::lock(), or the calls thereof.

     

Log in to post a comment.