Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-13 Thread Roman Gushchin
On Fri, Nov 13, 2020 at 06:25:53AM -0800, Shakeel Butt wrote: > On Thu, Nov 12, 2020 at 8:02 PM Roman Gushchin wrote: > > > > On Thu, Nov 12, 2020 at 07:25:48PM -0800, Alexei Starovoitov wrote: > > > On Thu, Nov 12, 2020 at 7:18 PM Andrew Morton > > > wrote: > > > > > > > > On Thu, 12 Nov 2020 1

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Alexei Starovoitov
On Thu, Nov 12, 2020 at 7:40 PM Andrew Morton wrote: > > On Thu, 12 Nov 2020 19:25:48 -0800 Alexei Starovoitov > wrote: > > > On Thu, Nov 12, 2020 at 7:18 PM Andrew Morton > > wrote: > > > > > > On Thu, 12 Nov 2020 19:04:56 -0800 Alexei Starovoitov > > > wrote: > > > > > > > On Thu, Nov 12,

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Roman Gushchin
On Thu, Nov 12, 2020 at 07:25:48PM -0800, Alexei Starovoitov wrote: > On Thu, Nov 12, 2020 at 7:18 PM Andrew Morton > wrote: > > > > On Thu, 12 Nov 2020 19:04:56 -0800 Alexei Starovoitov > > wrote: > > > > > On Thu, Nov 12, 2020 at 04:26:10PM -0800, Roman Gushchin wrote: > > > > > > > > These p

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Andrew Morton
On Thu, 12 Nov 2020 19:25:48 -0800 Alexei Starovoitov wrote: > On Thu, Nov 12, 2020 at 7:18 PM Andrew Morton > wrote: > > > > On Thu, 12 Nov 2020 19:04:56 -0800 Alexei Starovoitov > > wrote: > > > > > On Thu, Nov 12, 2020 at 04:26:10PM -0800, Roman Gushchin wrote: > > > > > > > > These patch

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Alexei Starovoitov
On Thu, Nov 12, 2020 at 7:18 PM Andrew Morton wrote: > > On Thu, 12 Nov 2020 19:04:56 -0800 Alexei Starovoitov > wrote: > > > On Thu, Nov 12, 2020 at 04:26:10PM -0800, Roman Gushchin wrote: > > > > > > These patches are not intended to be merged through the bpf tree. > > > They are included into

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Andrew Morton
On Thu, 12 Nov 2020 19:04:56 -0800 Alexei Starovoitov wrote: > On Thu, Nov 12, 2020 at 04:26:10PM -0800, Roman Gushchin wrote: > > > > These patches are not intended to be merged through the bpf tree. > > They are included into the patchset to make bpf selftests pass and for > > informational p

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Alexei Starovoitov
On Thu, Nov 12, 2020 at 04:26:10PM -0800, Roman Gushchin wrote: > > These patches are not intended to be merged through the bpf tree. > They are included into the patchset to make bpf selftests pass and for > informational purposes. > It's written in the cover letter. ... > Maybe I had to just lis

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Roman Gushchin
On Fri, Nov 13, 2020 at 09:56:32AM +1100, Stephen Rothwell wrote: > Hi Roman, > > On Thu, 12 Nov 2020 14:15:10 -0800 Roman Gushchin wrote: > > > > Patch series "mm: allow mapping accounted kernel pages to userspace", v6. > > > > Currently a non-slab kernel page which has been charged to a memory

Re: [PATCH bpf-next v5 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-12 Thread Stephen Rothwell
Hi Roman, On Thu, 12 Nov 2020 14:15:10 -0800 Roman Gushchin wrote: > > Patch series "mm: allow mapping accounted kernel pages to userspace", v6. > > Currently a non-slab kernel page which has been charged to a memory cgroup > can't be mapped to userspace. The underlying reason is simple: PageKm