Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755391Ab3C0A4h (ORCPT ); Tue, 26 Mar 2013 20:56:37 -0400 Received: from relay1.sgi.com ([192.48.179.29]:47954 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755297Ab3C0A4g (ORCPT ); Tue, 26 Mar 2013 20:56:36 -0400 From: Nathan Zimmer Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Nathan Zimmer Subject: [PATCH v5 0/2] timer_list: Fix /proc/timer_list failure on 4096 cpus Date: Tue, 26 Mar 2013 19:56:28 -0500 Message-Id: <1364345790-14577-1-git-send-email-nzimmer@sgi.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 29 On systems with 4096 cores attemping to read /proc/timer_list fails because we are trying to push all the data into a single kmalloc buffer. A better solution is to not us the single_open mechanism but to provide our own seq_operations and treat each cpu as an individual record. The output should be identical to the previous version. v2: Added comments on the iteration and other fixups pointed to by Andrew. v3: Corrected the case where max_cpus != nr_cpu_ids by exiting early. v5: Use seq_open_private and supply a proper iterator rather then a big mess. Nathan Zimmer (2): timer_list: split timer_list_show_tickdevices timer_list: convert timer list to be a proper seq_file kernel/time/timer_list.c | 104 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 83 insertions(+), 21 deletions(-) -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/