From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com> |
Cc: | Luke Lonergan <llonergan(at)greenplum(dot)com>, Skype Technologies OY <hannu(at)skype(dot)net>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Myron Scott <lister(at)sacadia(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: OS cached buffers (was: Support Parallel Query Execution |
Date: | 2006-04-14 13:46:57 |
Message-ID: | 200604141346.k3EDkvZ07955@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Jim C. Nasby wrote:
> Yeah, my assumption has been that the only way to tell the difference
> would be by timing, but I don't know how practical that is. Since
> gettime() or whatever EXPLAIN ANALYZE uses is apparently very expensive,
> perhaps there's some other alternative. Perhapse the timing info in
> getrusage would work for this. Another idea is setting an alarm for a
> fairly short period before making the IO request. If the request comes
> back before the alarm fires, the data must have been in the OS cache.
>
> Another thought is that any IO request that goes to disk would most
> likely put the process requesting the IO to sleep, but a request being
> served out of cache might not do that. Perhaps there's some way to
> recognize that.
>
> Or maybe a better track would be to develop a patch for as many OSes as
> possible that would tell the caller if an IO request came out of cache
> or not.
Or give up, which seems the most fruitful approach.
--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2006-04-14 14:42:33 | Re: Practical impediment to supporting multiple SSL libraries |
Previous Message | Andreas Pflug | 2006-04-14 09:42:02 | Re: Control File |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-04-14 14:46:08 | Re: pg_ctl options checking |
Previous Message | Jim C. Nasby | 2006-04-14 04:45:05 | Re: OS cached buffers (was: Support Parallel Query Execution |