Search:

Type: Posts; User: Salem

Search: Search took 0.58 seconds.

  1. Replies
    8
    Views
    14,392

    Some reading c - When should I use mmap for file...

    Some reading
    c - When should I use mmap for file access? - Stack Overflow
    linux performance tuning - Google Search


    Some API calls that may be worth a read.
    madvise(2): give advice about use...
  2. Replies
    8
    Views
    14,392

    >My test file is ~25 MB with about 17,000 chunks....

    >My test file is ~25 MB with about 17,000 chunks.
    How long does it take to do this?


    int nblocks = 0;
    char buff[BUFSIZ];
    FILE *fp = fopen("chunky_file","rb");
    while ( fread( buff, BUFSIZ, 1,...
  3. Replies
    8
    Views
    14,392

    nmap might be an interesting programming trick to...

    nmap might be an interesting programming trick to save a bit of buffering work inside the kernel and your code, but it doesn't get past the physical reality of having to read the hard disk.

    Seek...
Results 1 to 3 of 3