This patch is to reduce the lock contention of swap_info_struct->lock
via using a more fine grained lock in swap_cluster_info for some swap
operations. swap_info_struct->lock is heavily contended if multiple
processes reclaim pages simultaneously. Because there is only one lock
for each swap
This patch is to reduce the lock contention of swap_info_struct->lock
via using a more fine grained lock in swap_cluster_info for some swap
operations. swap_info_struct->lock is heavily contended if multiple
processes reclaim pages simultaneously. Because there is only one lock
for each swap
Andrew Morton writes:
> On Thu, 12 Jan 2017 09:47:51 +0800 "Huang\, Ying"
> wrote:
>
>> >> > 1MB swap space, so for 1TB swap space, the total size will be 80M
>> >> > compared with 8M of current implementation.
>> >
>> > Where did this 80 bytes
Andrew Morton writes:
> On Thu, 12 Jan 2017 09:47:51 +0800 "Huang\, Ying"
> wrote:
>
>> >> > 1MB swap space, so for 1TB swap space, the total size will be 80M
>> >> > compared with 8M of current implementation.
>> >
>> > Where did this 80 bytes come from? That swap_cluster_info is 12 bytes
>>
On Thu, 12 Jan 2017 09:47:51 +0800 "Huang\, Ying" wrote:
> >> > 1MB swap space, so for 1TB swap space, the total size will be 80M
> >> > compared with 8M of current implementation.
> >
> > Where did this 80 bytes come from? That swap_cluster_info is 12 bytes
> > and could
On Thu, 12 Jan 2017 09:47:51 +0800 "Huang\, Ying" wrote:
> >> > 1MB swap space, so for 1TB swap space, the total size will be 80M
> >> > compared with 8M of current implementation.
> >
> > Where did this 80 bytes come from? That swap_cluster_info is 12 bytes
> > and could perhaps be squeezed
Hi, Andrew,
Andrew Morton writes:
> On Wed, 11 Jan 2017 16:07:29 -0700 Jonathan Corbet wrote:
>
>> On Wed, 11 Jan 2017 15:00:29 -0800
>> Andrew Morton wrote:
>>
>> > hm, bit_spin_lock() is a nasty thing. It is slow and it
Hi, Andrew,
Andrew Morton writes:
> On Wed, 11 Jan 2017 16:07:29 -0700 Jonathan Corbet wrote:
>
>> On Wed, 11 Jan 2017 15:00:29 -0800
>> Andrew Morton wrote:
>>
>> > hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
>> > all the lockdep support.
>> >
>> > Would the world
Hi, Jonathan,
Jonathan Corbet writes:
> On Wed, 11 Jan 2017 15:00:29 -0800
> Andrew Morton wrote:
>
>> hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
>> all the lockdep support.
>>
>> Would the world end if we added a spinlock
Hi, Jonathan,
Jonathan Corbet writes:
> On Wed, 11 Jan 2017 15:00:29 -0800
> Andrew Morton wrote:
>
>> hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
>> all the lockdep support.
>>
>> Would the world end if we added a spinlock to swap_cluster_info?
>
> FWIW, I asked the
On Wed, 11 Jan 2017 16:07:29 -0700 Jonathan Corbet wrote:
> On Wed, 11 Jan 2017 15:00:29 -0800
> Andrew Morton wrote:
>
> > hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
> > all the lockdep support.
> >
> > Would the world end
On Wed, 11 Jan 2017 16:07:29 -0700 Jonathan Corbet wrote:
> On Wed, 11 Jan 2017 15:00:29 -0800
> Andrew Morton wrote:
>
> > hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
> > all the lockdep support.
> >
> > Would the world end if we added a spinlock to
On Wed, 11 Jan 2017 15:00:29 -0800
Andrew Morton wrote:
> hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
> all the lockdep support.
>
> Would the world end if we added a spinlock to swap_cluster_info?
FWIW, I asked the same question in
On Wed, 11 Jan 2017 15:00:29 -0800
Andrew Morton wrote:
> hm, bit_spin_lock() is a nasty thing. It is slow and it doesn't have
> all the lockdep support.
>
> Would the world end if we added a spinlock to swap_cluster_info?
FWIW, I asked the same question in December, this is what I got:
jon
On Wed, 11 Jan 2017 09:55:12 -0800 Tim Chen wrote:
> From: "Huang, Ying"
>
> This patch is to reduce the lock contention of swap_info_struct->lock
> via using a more fine grained lock in swap_cluster_info for some swap
> operations.
On Wed, 11 Jan 2017 09:55:12 -0800 Tim Chen wrote:
> From: "Huang, Ying"
>
> This patch is to reduce the lock contention of swap_info_struct->lock
> via using a more fine grained lock in swap_cluster_info for some swap
> operations. swap_info_struct->lock is heavily contended if multiple
>
From: "Huang, Ying"
This patch is to reduce the lock contention of swap_info_struct->lock
via using a more fine grained lock in swap_cluster_info for some swap
operations. swap_info_struct->lock is heavily contended if multiple
processes reclaim pages simultaneously.
From: "Huang, Ying"
This patch is to reduce the lock contention of swap_info_struct->lock
via using a more fine grained lock in swap_cluster_info for some swap
operations. swap_info_struct->lock is heavily contended if multiple
processes reclaim pages simultaneously. Because there is only one
18 matches
Mail list logo