From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89C763858C27; Mon, 30 Oct 2023 19:24:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89C763858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1698693849; bh=2f0pWdi2Z9exawALmFSkg6FFJ/UBW6omhiunNxZHVi8=; h=From:To:Subject:Date:From; b=n+rWjjFsfxjANZmx4/ZONpuUult+C1LqPw7dHriFXN739EMUgny80ZFhLeoEvEuGl 4lEYrByzpl6+Wf4QV/low15TaiXizJuWg4+5q9oYM43YHcwD81BjlRgWjXq0uC6pOS yza5QZv2E8zw6touUmjPQu5gtijxatPaqG9hbfnM= From: "agentzh at gmail dot com" To: systemtap@sourceware.org Subject: [Bug runtime/31012] New: Bug: kernel module loading might block a CPU more than 1.5ms on very fast machines Date: Mon, 30 Oct 2023 19:24:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: agentzh at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31012 Bug ID: 31012 Summary: Bug: kernel module loading might block a CPU more than 1.5ms on very fast machines Product: systemtap Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: agentzh at gmail dot com Target Milestone: --- Currently, the module init code calls the expensive kernel function kallsyms_lookup_name() several times, which would block a CPU core for more than 1.5ms on high-speed machines (Core i9-13900K). Each kallsyms_lookup_name() might take more than 800us here. We should add cond_resched() calls to mitigate this blocking effect. Will prepare a patch shortly. --=20 You are receiving this mail because: You are the assignee for the bug.=