[Bug 274690] performance degradation due to aslr

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 24 Oct 2023 10:14:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274690

            Bug ID: 274690
           Summary: performance degradation due to aslr
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: bsdbugs_mr@pradmin.ru

Booting FreeBSD with default tunnables:
kern.elf64.aslr.enable=1
vm.cluster_anon=1

vm.aslr_restarts: 0
xmrig hashrate: 1138
vm.aslr_restarts: 0
running some desktop software from ports tree (browsers, image editors, office
etc).
CPU:  3,7% user,  0,0% nice,  2,0% system,  0,3% interrupt, 94,0% idle
Mem: 3825M Active, 3338M Inact, 55M Laundry, 3237M Wired, 16K Buf, 3326M Free
vm.aslr_restarts: 504
exiting from those programs.
CPU:  0,5% user,  0,0% nice,  0,4% system,  0,0% interrupt, 99,1% idle
Mem: 651M Active, 2013M Inact, 16K Laundry, 3147M Wired, 16K Buf, 7964M Free
vm.aslr_restarts: 504
running xmrig to send different SIG* few times.
xmrig: 1140
killall -SIGBUS xmrig
xmrig: 1125
killall -SIGSEGV xmrig
xmrig: 1128
running firefox
killall -SIGSEGV firefox
xmrig: 1115
vm.aslr_restarts: 600
CPU: 14,4% user,  0,0% nice,  1,5% system,  0,1% interrupt, 84,0% idle
Mem: 3037M Active, 2388M Inact, 216K Laundry, 4310M Wired, 16K Buf, 4039M Free

        Second booting FreeBSD with tunnables:
kern.elf64.aslr.enable=0
vm.cluster_anon=2

vm.aslr_restarts: 0
xmrig: 1193
vm.aslr_restarts: 0
running same desktop soft.
CPU:  2,5% user,  0,0% nice,  0,8% system,  0,2% interrupt, 96,6% idle
Mem: 3571M Active, 3510M Inact, 51M Laundry, 3326M Wired, 247K Buf, 3324M Free
vm.aslr_restarts: 0
exitting from runned desktop soft. Running only firefox and chrome to send them
SIGSEGV few times.
killall -SIGSEGV firefox
killall -SIGSEGV chrome
CPU:  0,4% user,  0,0% nice,  0,4% system,  0,0% interrupt, 99,2% idle
Mem: 469M Active, 2436M Inact, 528K Laundry, 3174M Wired, 247K Buf, 7701M Free
vm.aslr_restarts: 0
xmrig: 1186

-- 
You are receiving this mail because:
You are the assignee for the bug.