lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTina7D3QffUK7vYvc3aVTvbcJQqm8VgQP3xJKYdw@mail.gmail.com>
Date:	Fri, 4 Mar 2011 15:31:15 +0100
From:	Denys Vlasenko <vda.linux@...glemail.com>
To:	Tejun Heo <tj@...nel.org>
Cc:	Oleg Nesterov <oleg@...hat.com>,
	Roland McGrath <roland@...hat.com>, jan.kratochvil@...hat.com,
	linux-kernel@...r.kernel.org, torvalds@...ux-foundation.org,
	akpm@...ux-foundation.org
Subject: Re: [RFC] Proposal for ptrace improvements

On Fri, Mar 4, 2011 at 3:07 PM, Tejun Heo <tj@...nel.org> wrote:
> Hello,
>
> On Fri, Mar 04, 2011 at 02:59:32PM +0100, Denys Vlasenko wrote:
>> I would rather speed strace up than slow it down further, even if
>> slightly.
>
> The question to ask is at what cost?  If mostly unnoticeable slow down
> makes the API cleaner, I'll go that way.  Everything is a tradeoff.

# time sh -c 'ls -lR /usr/share >/dev/null'
real	0m2.633s
user	0m0.540s
sys	0m2.047s

strace without PTRACE_GETSIGINFO:

# time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
exit_group(0)                           = ?
real	0m47.023s
user	0m3.843s
sys	0m29.050s
# time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
exit_group(0)                           = ?
real	0m48.799s
user	0m3.808s
sys	0m29.736s
# time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
exit_group(0)                           = ?
real	0m47.695s
user	0m3.965s
sys	0m29.047s

strace with PTRACE_GETSIGINFO:

# time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
exit_group(0)                           = ?
real	0m51.958s
user	0m3.899s
sys	0m31.584s
# time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
exit_group(0)                           = ?
real	0m53.773s
user	0m3.920s
sys	0m29.713s
# time sh -c './strace -e trace=exit_group ls -lR /usr/share >/dev/null'
exit_group(0)                           = ?
real	0m51.625s
user	0m3.961s
sys	0m30.970s

-- 
vda
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ