Fwd: mips TLS!
Adrian Chadd
adrian at freebsd.org
Thu Jul 21 15:46:37 UTC 2016
hi!
Stacey did up some TLS work for mips in 2014 but it never landed in
-HEAD. Dan updated it to compile/run for mips32, and the performance
improvements are great.
Does anyone have a mips64 system they can test this on? I'd like to
commit this soon. :)
Thanks!
-adrian
---------- Forwarded message ----------
From: Dan Nelson <dnelson_1901 at yahoo.com>
Date: 21 July 2016 at 07:31
Subject: Re: mips TLS!
To: Adrian Chadd <adrian.chadd at gmail.com>
Cc: Stacey Son <sson at freebsd.org>, Robert Watson
<rwatson at freebsd.org>, Stacey Son <sson at me.com>
Oops - here they are. The benchmark numbers of course don't reflect
reflect the gains I saw in every program. I only picked ones that
were generating large amounts of syscalls. Some apps, like gcc,
managed to consume vast quantities of ram without needing TLS even
before patching.
________________________________
From: Adrian Chadd <adrian.chadd at gmail.com>
To: Dan Nelson <dnelson_1901 at yahoo.com>
Cc: Stacey Son <sson at freebsd.org>; Robert Watson
<rwatson at freebsd.org>; Stacey Son <sson at me.com>
Sent: Thursday, July 21, 2016 12:10 AM
Subject: Re: mips TLS!
Woohoo!
Patches? :)
On Jul 20, 2016 8:54 PM, "Dan Nelson" <dnelson_1901 at yahoo.com> wrote:
The TLS patches seem to be a success, after fixing a couple of
rejected patch blocks and fixing up some compile errors in the mips32
code. Tiny benchmark results:
>
>"sqlite3 /var/db/pkg/local.sqlite vacuum"
>total syscall count went from 570000 -> 117000
>20% reduction in user+sys cpu time (7.06 -> 5.66)
>
>"portupgrade -f doesntexist"
>total syscall count went from 3835000 -> 14000
>52% reduction in user+sys cpu time (25.3 -> 12.1)
>
>"du -s /usr/local"
>total syscall count went from 485000 -> 69400
>38% reduction in user+sys cpu time (5.08 -> 3.14)
>
>Raw numbers attached.
>
>
>
>________________________________
>From: Adrian Chadd <adrian.chadd at gmail.com>
>To: Stacey Son <sson at me.com>
>Cc: Stacey Son <sson at freebsd.org>; Robert Watson <rwatson at freebsd.org>; Dan Nelson <dnelson_1901 at yahoo.com>
>Sent: Tuesday, July 19, 2016 8:00 PM
>Subject: Re: mips TLS!
>
>
>heh, dynamic patching always makes me itch. But, dtrace does it, right? :P
>
>Dan, let's give the TLS patches a go and see how well it works out. :)
>
>
>
>
>-a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulri_kernel.diff
Type: application/octet-stream
Size: 13754 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20160721/113deabd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulri_user.diff
Type: application/octet-stream
Size: 3383 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20160721/113deabd/attachment-0001.obj>
More information about the freebsd-mips
mailing list