Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-02-19 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 19, 2021 at 07:05:59PM +0900, Namhyung Kim escreveu: > On Wed, Feb 17, 2021 at 9:58 PM Arnaldo Carvalho de Melo > wrote: > > Em Fri, Jan 08, 2021 at 02:51:44PM +0900, Namhyung Kim escreveu: > > > On Wed, Jan 6, 2021 at 10:33 AM Namhyung Kim wrote: > > > As you said, I think mostly

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-02-19 Thread Namhyung Kim
Hi Arnaldo, On Wed, Feb 17, 2021 at 9:58 PM Arnaldo Carvalho de Melo wrote: > > Em Fri, Jan 08, 2021 at 02:51:44PM +0900, Namhyung Kim escreveu: > > On Wed, Jan 6, 2021 at 10:33 AM Namhyung Kim wrote: > > > > > > Hi Arnaldo, > > > > > > On Tue, Dec 29, 2020 at 8:51 PM Arnaldo Carvalho de Melo >

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 08, 2021 at 02:51:44PM +0900, Namhyung Kim escreveu: > On Wed, Jan 6, 2021 at 10:33 AM Namhyung Kim wrote: > > > > Hi Arnaldo, > > > > On Tue, Dec 29, 2020 at 8:51 PM Arnaldo Carvalho de Melo > > wrote: > > > > > > Em Wed, Dec 16, 2020 at 06:05:56PM +0900, Namhyung Kim escreveu: > >

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-01-20 Thread Namhyung Kim
Hi Arnaldo, Can you share your thoughts on this? On Fri, Jan 8, 2021 at 2:51 PM Namhyung Kim wrote: > > On Wed, Jan 6, 2021 at 10:33 AM Namhyung Kim wrote: > > > > Hi Arnaldo, > > > > On Tue, Dec 29, 2020 at 8:51 PM Arnaldo Carvalho de Melo > > wrote: > > > > > > Em Wed, Dec 16, 2020 at

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-01-07 Thread Namhyung Kim
On Wed, Jan 6, 2021 at 10:33 AM Namhyung Kim wrote: > > Hi Arnaldo, > > On Tue, Dec 29, 2020 at 8:51 PM Arnaldo Carvalho de Melo > wrote: > > > > Em Wed, Dec 16, 2020 at 06:05:56PM +0900, Namhyung Kim escreveu: > > > Currently it parses the /proc file everytime it opens a file in the > > >

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-01-05 Thread Namhyung Kim
Hi Arnaldo, On Tue, Dec 29, 2020 at 8:51 PM Arnaldo Carvalho de Melo wrote: > > Em Wed, Dec 16, 2020 at 06:05:56PM +0900, Namhyung Kim escreveu: > > Currently it parses the /proc file everytime it opens a file in the > > cgroupfs. Save the last result to avoid it (assuming it won't be > >

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2020-12-29 Thread Arnaldo Carvalho de Melo
Em Wed, Dec 16, 2020 at 06:05:56PM +0900, Namhyung Kim escreveu: > Currently it parses the /proc file everytime it opens a file in the > cgroupfs. Save the last result to avoid it (assuming it won't be > changed between the accesses). Which is the most likely case, but can't we use something

[PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2020-12-16 Thread Namhyung Kim
Currently it parses the /proc file everytime it opens a file in the cgroupfs. Save the last result to avoid it (assuming it won't be changed between the accesses). Signed-off-by: Namhyung Kim --- tools/lib/api/fs/cgroup.c | 19 +++ 1 file changed, 19 insertions(+) diff --git