[Bug 279308] mdmfs does not work as documented

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Oct 2024 00:19:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279308

--- Comment #11 from Ivan Rozhuk <rozhuk.im@gmail.com> ---
(In reply to Xin LI from comment #10)

tmpfs is much faster than md, but while compiling something like chromium on
desktop with md it freezes less that with tmpfs.
"nomtime,pgread" makes tmpfs a better but still have freezes in apps.


I has try:
1. set lowest possible prio to build process: /usr/sbin/idprio 31 /usr/bin/nice
-n 20 /usr/bin/make
https://github.com/rozhuk-im/freebsd-ports/commit/0f9892b7bf8ea92be02123a5b75269b5877f1216

2. set highest possible for Xorg:
xserver-command=/usr/sbin/rtprio 0 /usr/bin/nice -n -20 /usr/bin/env
MESA_SHADER_CACHE_DISABLE='true' /usr/local/bin/X

3. avoid caching in /tmp graphics related things:
MESA_SHADER_CACHE_DISABLE='true'

4. reduce mmap()/unmap() usage by malloc: malloc.conf@ ->
metadata_thp:disabled,retain:true,dss:disabled,narenas:8,background_thread:false,tcache:true,lg_tcache_max:16

5. play with memory disk and options


It is still poor user experience while chromium build in progress, but a better
that without this steps.
I do suspect that is it some memory fragmentation problem that reduce mmap()
performance + amdgpu lags than freemem is at minimum level so pagedaemon pump
mem for amdgu from laudary and other staff with delay.

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