Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-10 Thread Alexander Duyck
On Tue, 2019-09-10 at 14:11 +0200, Michal Hocko wrote: > On Mon 09-09-19 08:11:36, Alexander Duyck wrote: > > On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > > > On 07.09.19 19:25, Alexander Duyck wrote: > > > > From: Alexander Duyck > > > > > > > > Change the logic used to

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-10 Thread Alexander Duyck
On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > On 07.09.19 19:25, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Change the logic used to generate randomness in the suffle path so that we > > can avoid cache line bouncing. The previous logic was sharing the offset > >

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-10 Thread Michal Hocko
On Mon 09-09-19 08:11:36, Alexander Duyck wrote: > On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > > On 07.09.19 19:25, Alexander Duyck wrote: > > > From: Alexander Duyck > > > > > > Change the logic used to generate randomness in the suffle path so that we > > > can avoid cache

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-09 Thread Alexander Duyck
On Mon, 2019-09-09 at 12:07 +0300, Kirill A. Shutemov wrote: > On Sat, Sep 07, 2019 at 10:25:12AM -0700, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Change the logic used to generate randomness in the suffle path so that we > > Typo. > > > can avoid cache line bouncing. The

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-09 Thread Alexander Duyck
On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > On 07.09.19 19:25, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Change the logic used to generate randomness in the suffle path so that we > > can avoid cache line bouncing. The previous logic was sharing the offset > >

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-09 Thread Kirill A. Shutemov
On Sat, Sep 07, 2019 at 10:25:12AM -0700, Alexander Duyck wrote: > From: Alexander Duyck > > Change the logic used to generate randomness in the suffle path so that we Typo. > can avoid cache line bouncing. The previous logic was sharing the offset > and entropy word between all CPUs. As such

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-09 Thread David Hildenbrand
On 07.09.19 19:25, Alexander Duyck wrote: > From: Alexander Duyck > > Change the logic used to generate randomness in the suffle path so that we > can avoid cache line bouncing. The previous logic was sharing the offset > and entropy word between all CPUs. As such this can result in cache line >

[PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-07 Thread Alexander Duyck
From: Alexander Duyck Change the logic used to generate randomness in the suffle path so that we can avoid cache line bouncing. The previous logic was sharing the offset and entropy word between all CPUs. As such this can result in cache line bouncing and will ultimately hurt performance when