Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932142AbWERURQ (ORCPT ); Thu, 18 May 2006 16:17:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751395AbWERURQ (ORCPT ); Thu, 18 May 2006 16:17:16 -0400 Received: from ns2.suse.de ([195.135.220.15]:61064 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S1751392AbWERURQ (ORCPT ); Thu, 18 May 2006 16:17:16 -0400 To: renzo@cs.unibo.it (Renzo Davoli) Cc: osd@cs.unibo.it, linux-kernel@vger.kernel.org Subject: Re: [PATCH] 2-ptrace_multi References: <20060518155337.GA17498@cs.unibo.it> <20060518155848.GC17498@cs.unibo.it> From: Andi Kleen Date: 18 May 2006 22:17:08 +0200 In-Reply-To: <20060518155848.GC17498@cs.unibo.it> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 24 renzo@cs.unibo.it (Renzo Davoli) writes: > ptmulti kernel patch inserts a new useful option for ptrace() call, > adding a new request type to ptrace() syscall. > > With PTRACE_MULTI option you can send multiple ptrace requests with a > single system call: commonly a process that uses ptrace() needs > several PTRACE_PEEKDATA for getting some useful, even small pieces of data. > It is useful for these programs to run several ptrace > operations while limiting the number of context switches. What context switches do you mean? System calls? Linux is in general designed to have very cheap system calls and they shouldn't be more tha a few hundred cycles. > > Debuggers and virtual machines (like User Mode Linux) and many other > applications that are based on ptrace can get great > performance improvements by PTRACE_MULTI: the number of system > calls (and context switches) decreases significantly. You forgot to add numbers? -Andi - 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/