linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Calls to do_swap_page() from handle_pte_fault() on a system where swap is not configured
@ 2025-12-03  7:41 Jayaraj Rajappan
  2025-12-03  8:18 ` Gregory Price
  0 siblings, 1 reply; 4+ messages in thread
From: Jayaraj Rajappan @ 2025-12-03  7:41 UTC (permalink / raw)
  To: linux-mm; +Cc: linux-kernel

Hi,

On a system where swap is not configured, profiling using Linux "perf"
tool shows that do_swap_page() gets called from handle_pte_fault().
Kernel version is 5.14.0. HugePages are disabled on the system. Trying
to understand what could cause do_swap_page() to be called when there
is no swap configured on the system.

// kernel version
# uname -a
Linux houdini 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Fri
May 23 22:47:01 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

// no swap device configured
# swapon --show
#

// dynamic tracepoint event configured on do_swap_page()
# perf list | grep do_swap_page
  probe:do_swap_page                                 [Tracepoint event]

  // couple of samples profiled via "perf" tool
  hbatch-bin    7301 [012]  7041.023668: probe:do_swap_page: (ffffffff89dae350)
        ffffffff89dae351 do_swap_page+0x1 ([kernel.kallsyms])
        ffffffff89db34ae __handle_mm_fault+0x2fe ([kernel.kallsyms])
        ffffffff89db38f9 handle_mm_fault+0xe9 ([kernel.kallsyms])
        ffffffff89a90ab4 do_user_addr_fault+0x154 ([kernel.kallsyms])
        ffffffff8a723d72 exc_page_fault+0x62 ([kernel.kallsyms])
        ffffffff8a800bb2 asm_exc_page_fault+0x22 ([kernel.kallsyms])
            7f6cca147faf UT_SparseMatrixELLT<float, false,
false>::multVecAndDotInternalPartial(UT_VectorT<float> const&,
UT_VectorT<float>&, double*, UT_JobInf>
                 2715da7 [unknown] ([unknown])

hbatch-bin    7247 [000]  7185.407376: probe:do_swap_page: (ffffffff89dae350)
        ffffffff89dae351 do_swap_page+0x1 ([kernel.kallsyms])
        ffffffff89db34ae __handle_mm_fault+0x2fe ([kernel.kallsyms])
        ffffffff89db38f9 handle_mm_fault+0xe9 ([kernel.kallsyms])
        ffffffff89a90ab4 do_user_addr_fault+0x154 ([kernel.kallsyms])
        ffffffff8a723d72 exc_page_fault+0x62 ([kernel.kallsyms])
        ffffffff8a800bb2 asm_exc_page_fault+0x22 ([kernel.kallsyms])
            7f6cb11b5c80 UT_PageArray<void, -1l, true, false, 10l,
long>::clearAndDestroy()+0x0
(/opt/hfs21.0.440/dsolib/libHoudiniGEO.so)
            7f6c8a357fc0 [unknown] ([unknown])
            7f6cb1140a30 GA_ATINumeric::~GA_ATINumeric()+0x0
(/opt/hfs21.0.440/dsolib/libHoudiniGEO.so)
        8310c08348fd8948 [unknown] ([unknown])

Regards,
Jayaraj


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

end of thread, other threads:[~2025-12-03 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-03  7:41 Calls to do_swap_page() from handle_pte_fault() on a system where swap is not configured Jayaraj Rajappan
2025-12-03  8:18 ` Gregory Price
2025-12-03 22:12   ` David Hildenbrand (Red Hat)
2025-12-03 22:28     ` Gregory Price

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox