Re: Application Object Replacement
From: Google Mike (googlemike_at_hotpop.com)
Date: 07/30/04
- Next message: Zurab Davitiani: "Re: Learning PHP (5) -> cloning objects?"
- Previous message: Andy Hassall: "Re: Check if $_GET["menu"] is null."
- In reply to: Colin McKinnon: "Re: Application Object Replacement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Jul 2004 14:51:26 -0700
Colin McKinnon <colin.deletethis@andthis.mms3.com> wrote in message
> Google Mike wrote:
> >
> > Anyway, does anyone have any ideas on how to use a different technique
> > like environment variables; a socket service that caches the array to
> > RAM after reading it from a database every 15 minutes; or other
> > technique?
> >
> > I could store the entries in a file, but the point is that I don't
> > want disk access here -- I want it in RAM.
> >
> > My Linux server has 1GB of RAM. I calculated the shared memory stuff
> > I'm storing there and it's no more than 20MB.
> >
>
> Linux, indeed most forms of *nix are phenomonally good at cacheing file i/o
> therefore if you store the stuff in files it will most likely be available
> from 'RAM'. Indeed this is likely to be even faster than running a DBMS off
> a ramdisk. The only time I would even consider using shm is when I need
> manage near concurrent access to data which is rapidly changing - and I
> guess that is not the situation here.
>
> Try it.
>
> You can virtually eliminate file i/o by switching off atime on the relevant
> filesystem.
>
> Or of course you could put the files in a ramdisk, but there's not a lot of
> a performance gain there.
>
> HTH
>
> C.
Hmm. Didn't think of that. Sounds like you're on to something.
What about creating another filesystem with a portion of my Linux's
existing (ext3) file system? Is that possible? If so, could I then
apply the switch on that second file system to turn off anything that
might slow it down? Can I make it a faster file system instead of
ext3? If so, then I could do reads from this second, super-fast
filesystem and perhaps get the kind of speed I need? What do you
think?
- Next message: Zurab Davitiani: "Re: Learning PHP (5) -> cloning objects?"
- Previous message: Andy Hassall: "Re: Check if $_GET["menu"] is null."
- In reply to: Colin McKinnon: "Re: Application Object Replacement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|