Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Using the "pre created" disk...

Karl
2012-04-12
2013-04-25
  • Karl
    Karl
    2012-04-12

    I pre-created a disk file of 1000 MiB using the "createdisks.stxxl.bin" utility provided by STXXL. However, whenever I run an application that uses STXXL, it reallocates new space on disk. Is there anything I should add to my .stxxl or Makefile files to indicate that they should use the pre-allocated space? Thanks

     
  • Karl
    Karl
    2012-04-12

    I think I did. I'm running under Mac OS X Lion. I first ran the following command

    ./createdisks.stxxl.bin 1000 disk0
    

    in the stxxl/utils directory

    My .stxxl config file contains the following:

    disk=disk0,1000,syscall
    

    I'm not really sure if this is correct. Any help would be greatly appreciated

    Karl

     
  • Your disk file resides in the stxxl/utils directory

    If you put the .stxxl elsewhere or run your application from a different location, this file won't be found.
    It's recommended to use absolute paths to the disk files (especially if you have dedicated disks for this)

    Andreas

     
  • If your application uses more than 1 GB of disk space, it will grow the file automatically.