Is it possible to manually cache disk directories/files for faster parsing

Submitted by karye
on August 9, 2005 - 3:36am

I'm working on an app that parses a lot of small text files, in the order of 20000+
When the files are cached, the parsing goes 100 times faster.
The directories and files are known advanced.
Is there a way to order caching of a specified list of firectories/files?

Re: caching of a specified list of firectories/files?

Anonymous... (not verified)
on
August 9, 2005 - 4:57am

Is there a way to order caching of a specified list of firectories/files?

None that I know of, but noone's stopping you from writing a kernel module to provide that functionality.

readahead ?

crazy____ (not verified)
on
August 9, 2005 - 7:19am

I don't know any for caching by name but if you open the file you want to cache, there is readahead(2).

sys_readahead(int fd, loff_t offset, size_t nb);

bye

Thanx! I'll look into that.

karye
on
August 16, 2005 - 11:34am

Thanx! I'll look into that.

Ok. I'm quite a noob on this

karye
on
August 16, 2005 - 11:31am

Ok.
I'm quite a noob on this subject.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.