Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I installed http://www.superspeed.com/desktop/supercache.php for windows and the result is awesome.

Every program I run is faster.

Basically it uses the memory to cache data. Simple idea. I also use delay write.

Something like that in linux?

share|improve this question
1  
The linux kernel uses unused memory for disk caching by default. Delayed writing is also done by the I/O scheduler. –  jordanm Jan 25 '13 at 2:15
    
So is windows. But supercache goes one step further. Is there a way to make that disk caching bigger or longer? I know because hard disk utilization reach 100% for non SSD drive. Also supercache allow 5 seconds lazy writes (which will cause little problem due to journaling anyway) –  Jim Thio Jan 25 '13 at 2:18
    
A different kind of caching, but one you might also be interested in, is preload and prelink. –  ire_and_curses Jan 25 '13 at 3:44
add comment

1 Answer

up vote 2 down vote accepted

The Linux cache is a block cache not a file cache. In that respect Linux already has this feature as it's cache. It seems the only special thing about Supercache is it's a block cache and not a file cache.

From the Linux System Adminstrator's guide...

The cache does not actually buffer files, but blocks, which are the smallest units of disk I/O (under Linux, they are usually 1 KB). This way, also directories, super blocks, other filesystem bookkeeping data, and non-filesystem disks are cached.

http://linux.about.com/od/lsa_guide/a/gdelsa44.htm

Linux uses write-back buffering which writes to the disk after the cache. This is the same as delay write.

So Linux already has every feature of Supercache.

share|improve this answer
    
And yet my program run at 100% IO because there are too many random writes. Perhaps there is a way to make the lazy writes wait for 10 seconds before writing? –  Jim Thio Jan 25 '13 at 3:56
    
That guide is probably a bit dated. 4k is the default block size on most modern Linux filesystems. –  jordanm Jan 25 '13 at 5:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.