Re: Remove the limit on the number of entries allowed in catcaches, - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: Remove the limit on the number of entries allowed in catcaches,
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Remove the limit on the number of entries allowed in catcaches,  (Simon Riggs <[email protected]>)
Responses Re: Remove the limit on the number of entries allowed in
List pgsql-hackers
"Simon Riggs" <[email protected]> wrote
>
> Can we do the same for the file descriptors in fd.c?
>
> Very often the total number of file descriptors is much less than the
> maximum, so it would make sense to only maintain the LRU when we are
> using more than 50%-75% of the maximum.
>

I am not against doing it but AFAIR the LRU file operations is (1) not
frequent; (2) the cost is only several CPU circles if we do not run out of
fds; (3) the LRU lseek/close/open big cost is still not avoidable when we
really run out of fds. So this optimization may be not needed. Or do you
have some numbers to show that's a bottleneck for some kind of applications?

Regards,
Qingqing




pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Remove the limit on the number of entries allowed in catcaches,
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: emu buildfarm failure