just wondering - serving file cache off of ram ?

56 views
Skip to first unread message

Jonathan Vanasco

unread,
Jul 30, 2012, 10:48:04 AM7/30/12
to pylons-discuss
has anyone tried configuring pyramid / modules / os to run the cached
data directory ( templates, sessions, variables, whatever ) off of a
virtual disk/ram ?

just wondering if anyone has, and if there were decent speed
improvements.

Chris Rossi

unread,
Jul 30, 2012, 10:57:20 AM7/30/12
to pylons-...@googlegroups.com
I haven't. One nice thing about Unix based OS's (and maybe Windows
does this, too, I just wouldn't know) is they tend to draft any unused
ram into service as a disk cache, so if you have a small set of
frequently read files, there's a decent chance it will be in RAM.
Obviously, having a ramdisk would give you more control over what's in
RAM at any given moment, but if you provision your server to have a
lot more RAM than it needs for applications, and if you aren't
generally doing a ton of disk IO on a lot of different files that
would cause the cache to turn over frequently, then there's a decent
chance you can just sit back and let the OS take care of it for you.

Chris
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
>

Chris Lambacher

unread,
Jul 30, 2012, 2:59:23 PM7/30/12
to pylons-...@googlegroups.com
On Mon, Jul 30, 2012 at 10:57 AM, Chris Rossi <ch...@archimedeanco.com> wrote:
and maybe Windows does this, too, I just wouldn't know

Yes, windows also caches frequently/recently accessed files in free ram.

-Chris

--
Christopher Lambacher
ch...@kateandchris.net

Jonathan Vanasco

unread,
Jul 31, 2012, 10:31:06 AM7/31/12
to pylons-discuss
ah, nice.

i just started thinking about this as I noticed the "pserve --reload"
command refreshing on any change within the directory ( i.e. on Dir/
docs/* -- not on Dir/App or Dir/$env$.ini

The hdd on my macbook is 3-4 years old and pretty full, so it's not
nearly as fast as it should be.
Reply all
Reply to author
Forward
0 new messages