From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753086AbbGIMZV (ORCPT ); Thu, 9 Jul 2015 08:25:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:58880 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751775AbbGIMZO (ORCPT ); Thu, 9 Jul 2015 08:25:14 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Pratyush Anand Subject: Re: [PATCH -tip v11 0/7] kprobes: =?utf-8?b?Tk9LUFJPQkVfU1lNQk9M?= for modules, and scalbility efforts Date: Thu, 9 Jul 2015 12:19:24 +0000 (UTC) Message-ID: References: <20140514082034.5791.38607.stgit@ltc230.yrl.intra.hitachi.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 122.177.27.4 (Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masamai, Masami Hiramatsu hitachi.com> writes: > > Hi, > Here is the version 11 of NOKPROBE_SYMBOL/scalability series. > This fixes some issues. I did not had this mail in my inbox and replied through gmane web interface, but on systemtap mailing list [2]. Copying same reply here, as not sure if you are subscribed to systemtap mailing list. If I have not missed then v11 seems the last version posted for this series. However, I do not see any ACK/NACK for the series. So, I am just curious that why didn't it got merged into upstream. It seems a useful series and without these patches system becomes extremely slow with large number of kprobes enabled. When I enabled massive kprobes [1] on my ARM64 system without this patch series, I see "NMI watchdog: BUG: soft lockup" for all CPUs even before all kprobes are enabled. However, If I use these patches then system is able to survive and I can see following output for script [1]. real 1m49.734s user 0m0.000s sys 0m53.950s 31364 kprobes enabled :-) I was able to run `usex -e` to load the system, although I see that system is mostly occupied by kernel (97%). * Unix System EXerciser * USER SYSTEM IDLE LOADAVG TASKS/RUN TEST TIME * * USEX Version 1.9-36 * 3% 97% 0% 24.58 232/27 000:02:49 * ~Pratyush [1] #!/bin/sh grep ' [tT] ' /proc/kallsyms | fgrep -v '[' | awk '{print $3}' > syms.list echo 0 > /sys/kernel/debug/tracing/events/enable echo 0 > /sys/kernel/debug/tracing/events/kprobes/enable echo > /sys/kernel/debug/tracing/kprobe_events for i in `cat syms.list`; do echo "p $i" >> /sys/kernel/debug/tracing/kprobe_events ; done time echo 1 > /sys/kernel/debug/tracing/events/kprobes/enable num_kprobe=`cat /sys/kernel/debug/tracing/kprobe_events | wc -l` echo "$num_kprobe kprobes enabled :-)" [2] http://permalink.gmane.org/gmane.linux.systemtap/23573