Re: aio: worker: Free SMGR objects when idle - Mailing list pgsql-hackers

From shihao zhong
Subject Re: aio: worker: Free SMGR objects when idle
Date
Msg-id CAGRkXqRkCwNhrR-yXkJ+WKOqpy9d7J8092dOiLB7PFetzVw1Ng@mail.gmail.com
Whole thread
In response to Re: aio: worker: Free SMGR objects when idle  (Alexandre Felipe <o.alexandre.felipe@gmail.com>)
List pgsql-hackers
Hi Alexandre,

> About touching LRU, I thought that the I/O worker already updated the
> LRU list every operation, does it go through a different path?

You are right, FileAccess() in fd.c moves the file to the head of its
LRU ring on every read and write, so that part costs nothing new. I
was wrong there.

I still think v3 is enough for this patch, but I will leave it to
Nazir and Andres.

Thanks,
Shihao

pgsql-hackers by date:

Previous
From: Manu
Date:
Subject: Re: UNDO with constant time recovery (CTR)
Next
From: Matthias van de Meent
Date:
Subject: Re: Limiting WAL retained for archiving, like max_slot_wal_keep_size