All of lore.kernel.org
 help / color / mirror / Atom feed
* KVM: BUG during OOM on host
@ 2017-06-29  6:21 Wanpeng Li
  2017-06-29 17:14 ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: Wanpeng Li @ 2017-06-29  6:21 UTC (permalink / raw)
  To: kvm, linux-kernel, Paolo Bonzini, Radim Krcmar; +Cc: Wanpeng Li

Hi all,

When the OOM-Killer kills the guest which is running memory hog
processes, there is tons of splatting as below: the page count reaches
0 before drop_spte. The splatting will disappear when disables THP on
host.

------------[ cut here ]------------
 WARNING: CPU: 4 PID: 28317 at arch/x86/kvm/mmu.c:682
mmu_spte_clear_track_bits+0x84/0x120 [kvm]
 CPU: 4 PID: 28317 Comm: kworker/4:2 Tainted: G    B D W       4.12.0-rc7+ #29
 Workqueue: events mmput_async_fn
 task: ffff9465283c3280 task.stack: ffffacb0083b4000
 RIP: 0010:mmu_spte_clear_track_bits+0x84/0x120 [kvm]
 Call Trace:
  drop_spte+0x1a/0xb0 [kvm]
  mmu_page_zap_pte+0xcc/0xe0 [kvm]
  kvm_mmu_prepare_zap_page+0x81/0x4c0 [kvm]
  ? _raw_spin_lock+0x65/0x70
  kvm_mmu_invalidate_zap_all_pages+0x171/0x240 [kvm]
  kvm_arch_flush_shadow_all+0xe/0x10 [kvm]
  kvm_mmu_notifier_release+0x54/0x90 [kvm]
  ? kvm_mmu_notifier_release+0x5/0x90 [kvm]
  __mmu_notifier_release+0x65/0x100
  exit_mmap+0x168/0x180
  ? __khugepaged_exit+0xdb/0x140
  ? rcu_read_lock_sched_held+0x79/0x80
  ? kmem_cache_free+0x2f2/0x350
  mmput_async_fn+0x4c/0x140
  process_one_work+0x203/0x690
  worker_thread+0x4e/0x3b0
  kthread+0x117/0x150

Regards,
Wanpeng Li

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KVM: BUG during OOM on host
  2017-06-29  6:21 KVM: BUG during OOM on host Wanpeng Li
@ 2017-06-29 17:14 ` Paolo Bonzini
  2017-07-25 23:14   ` Wanpeng Li
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2017-06-29 17:14 UTC (permalink / raw)
  To: Wanpeng Li, kvm, linux-kernel, Radim Krcmar; +Cc: Wanpeng Li



On 29/06/2017 08:21, Wanpeng Li wrote:
> Hi all,
> 
> When the OOM-Killer kills the guest which is running memory hog
> processes, there is tons of splatting as below: the page count reaches
> 0 before drop_spte. The splatting will disappear when disables THP on
> host.

Can you reproduce it in 4.10?

Thanks,

Paolo

> ------------[ cut here ]------------
>  WARNING: CPU: 4 PID: 28317 at arch/x86/kvm/mmu.c:682
> mmu_spte_clear_track_bits+0x84/0x120 [kvm]
>  CPU: 4 PID: 28317 Comm: kworker/4:2 Tainted: G    B D W       4.12.0-rc7+ #29
>  Workqueue: events mmput_async_fn
>  task: ffff9465283c3280 task.stack: ffffacb0083b4000
>  RIP: 0010:mmu_spte_clear_track_bits+0x84/0x120 [kvm]
>  Call Trace:
>   drop_spte+0x1a/0xb0 [kvm]
>   mmu_page_zap_pte+0xcc/0xe0 [kvm]
>   kvm_mmu_prepare_zap_page+0x81/0x4c0 [kvm]
>   ? _raw_spin_lock+0x65/0x70
>   kvm_mmu_invalidate_zap_all_pages+0x171/0x240 [kvm]
>   kvm_arch_flush_shadow_all+0xe/0x10 [kvm]
>   kvm_mmu_notifier_release+0x54/0x90 [kvm]
>   ? kvm_mmu_notifier_release+0x5/0x90 [kvm]
>   __mmu_notifier_release+0x65/0x100
>   exit_mmap+0x168/0x180
>   ? __khugepaged_exit+0xdb/0x140
>   ? rcu_read_lock_sched_held+0x79/0x80
>   ? kmem_cache_free+0x2f2/0x350
>   mmput_async_fn+0x4c/0x140
>   process_one_work+0x203/0x690
>   worker_thread+0x4e/0x3b0
>   kthread+0x117/0x150
> 
> Regards,
> Wanpeng Li
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: KVM: BUG during OOM on host
  2017-06-29 17:14 ` Paolo Bonzini
@ 2017-07-25 23:14   ` Wanpeng Li
  0 siblings, 0 replies; 3+ messages in thread
From: Wanpeng Li @ 2017-07-25 23:14 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: kvm, linux-kernel, Radim Krcmar, Wanpeng Li

2017-06-30 1:14 GMT+08:00 Paolo Bonzini <pbonzini@redhat.com>:
>
>
> On 29/06/2017 08:21, Wanpeng Li wrote:
>> Hi all,
>>
>> When the OOM-Killer kills the guest which is running memory hog
>> processes, there is tons of splatting as below: the page count reaches
>> 0 before drop_spte. The splatting will disappear when disables THP on
>> host.
>
> Can you reproduce it in 4.10?

Sorry for the late response, it can't be reproduced in 4.10 Linus tree.

Regards,
Wanpeng Li

>
> Thanks,
>
> Paolo
>
>> ------------[ cut here ]------------
>>  WARNING: CPU: 4 PID: 28317 at arch/x86/kvm/mmu.c:682
>> mmu_spte_clear_track_bits+0x84/0x120 [kvm]
>>  CPU: 4 PID: 28317 Comm: kworker/4:2 Tainted: G    B D W       4.12.0-rc7+ #29
>>  Workqueue: events mmput_async_fn
>>  task: ffff9465283c3280 task.stack: ffffacb0083b4000
>>  RIP: 0010:mmu_spte_clear_track_bits+0x84/0x120 [kvm]
>>  Call Trace:
>>   drop_spte+0x1a/0xb0 [kvm]
>>   mmu_page_zap_pte+0xcc/0xe0 [kvm]
>>   kvm_mmu_prepare_zap_page+0x81/0x4c0 [kvm]
>>   ? _raw_spin_lock+0x65/0x70
>>   kvm_mmu_invalidate_zap_all_pages+0x171/0x240 [kvm]
>>   kvm_arch_flush_shadow_all+0xe/0x10 [kvm]
>>   kvm_mmu_notifier_release+0x54/0x90 [kvm]
>>   ? kvm_mmu_notifier_release+0x5/0x90 [kvm]
>>   __mmu_notifier_release+0x65/0x100
>>   exit_mmap+0x168/0x180
>>   ? __khugepaged_exit+0xdb/0x140
>>   ? rcu_read_lock_sched_held+0x79/0x80
>>   ? kmem_cache_free+0x2f2/0x350
>>   mmput_async_fn+0x4c/0x140
>>   process_one_work+0x203/0x690
>>   worker_thread+0x4e/0x3b0
>>   kthread+0x117/0x150
>>
>> Regards,
>> Wanpeng Li
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-25 23:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  6:21 KVM: BUG during OOM on host Wanpeng Li
2017-06-29 17:14 ` Paolo Bonzini
2017-07-25 23:14   ` Wanpeng Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.