[lkml]   [1996]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectmmap of large file slows down system.

I wrote a program that searches through a large file by first mmaping
the whole 256Mb file. It then steps sequentially through that file.

It seems that to the system this program is paging, and it bogs down
the whole system. When it would've been simply reading the file
sequentially, it wouldn't have caused the system to swap so much.

I'd submit a patch if it weren't that I have some work due real soon
now... :-)


 \ /
  Last update: 2005-03-22 13:38    [W:0.017 / U:1.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site