Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
disk cache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ambad4u
n00b
n00b


Joined: 08 May 2008
Posts: 59
Location: Toledo City, Cebu, Philippines

PostPosted: Mon Jul 27, 2015 8:26 pm    Post subject: disk cache Reply with quote

greetings to all,

some question(s):
I assume that TMPFS is for lightning fast read/write RAM based disk access.

is there similar to this just for disk cache? like utilizing normal sata drives and have RAM cache so that subsequent reads are very fast?

or is there anyone here used something like: "RapidCache" or something similar?

I'm still reading RapidCache for this, just would like to hear from a fellow gentoo if what they use as a disk cache.


I'll appreciate any inputs, thanks
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Mon Jul 27, 2015 9:26 pm    Post subject: Reply with quote

Not sure I understand, free memory is automatically used as disk cache in Linux - up to all unused RAM... Then when there are program brk(), the cache is dropped for demand allocates.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
ambad4u
n00b
n00b


Joined: 08 May 2008
Posts: 59
Location: Toledo City, Cebu, Philippines

PostPosted: Mon Jul 27, 2015 10:17 pm    Post subject: Reply with quote

i see, so linux does natively do disk cache if it permits..., I'll try to dig further on that.

anyways, I was referring to this website: http://rapiddisk.org/index.php?title=Main_Page

according to the website, it will utilize RAM as disk cache so that read is done in memory (RAM) and so will give significant I/O and speed in reading files.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Mon Jul 27, 2015 10:33 pm    Post subject: Reply with quote

http://www.linuxatemyram.com/
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Mon Jul 27, 2015 10:48 pm    Post subject: Reply with quote

Not sure what rapiddisk is doing differently than what in kernel caching is doing, unless it is automatically detecting which files/blocks should be kept in RAM from fresh boot. Now that is a bit different behavior than stock.

The main trouble with in-kernel caching is that the cache is empty on cold boot - it has no idea what the hot pages were on the previous boot. Also though it handles writeback, it favors safety and will try to flush all buffers as soon as possible (if you didn't lengthen writeback time) and when writeback must occur, interactive performance suffers greatly.

Anyway it's good enough for me...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Mon Jul 27, 2015 10:56 pm    Post subject: Reply with quote

You can use preload, but it can waste memory.

http://askubuntu.com/questions/110335/drawbacks-of-using-preload-why-isnt-it-included-by-default
Back to top
View user's profile Send private message
ambad4u
n00b
n00b


Joined: 08 May 2008
Posts: 59
Location: Toledo City, Cebu, Philippines

PostPosted: Mon Jul 27, 2015 11:47 pm    Post subject: Reply with quote

thanks for the inputs.

what I have is a regular sata drive that is regularly accessed by remote computers, I want it to cache what it has read. something that dm-cache, flashcache, bcache, RapidCache does.

I need something that I can manually allocate RAM and attached it as a read cache on a slow disk to improve speed and I/O access.
Back to top
View user's profile Send private message
ambad4u
n00b
n00b


Joined: 08 May 2008
Posts: 59
Location: Toledo City, Cebu, Philippines

PostPosted: Tue Jul 28, 2015 2:43 am    Post subject: Reply with quote

just read preload..., but is out of the question ^_^

RapidDisk is similar to TMPFS..., all I need is the other one which is RapidCache.
I'll try RapidDisk/RapidCache (if I can) and report back, thanks to all feedbacks/inputs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum