gpt4 book ai didi

Optimize Firefox / Chromium for low memory and cpu systems(针对低内存和cpu系统优化Firefox/Chromium)

转载 作者:bug小助手 更新时间:2023-10-22 15:10:29 33 4
gpt4 key购买 nike



What settings can be modified/added, to optimize Firefox / Chromium for low memory/cpu systems such as raspberry pi4, or similar configuration devices, besides them autoconfiguring for low memory and cpu?

除了针对低内存和cpu进行自动配置外,还可以修改/添加哪些设置,以针对低内存/cpu系统(如树莓pi4)或类似的配置设备优化Firefox/Chrome?


更多回答
优秀答案推荐

for Firefox, following tweaks seem to have a more responsive effect and longer to occupy memory.

对于Firefox来说,以下调整似乎具有更灵敏的响应效果,占用内存的时间更长。


# firefox memory optimize, to be set in about:config or user.js in firefor profile dir
browser.tabs.animate –>disable
browser.cache.memory.capacity –>0
javascript.options.jit.chrome –>true
javascript.options.jit.content –>true
network.http.pipelining –>true
network.http.proxy pipelining –>true
plugin.expose_full_path –>true
browser.tabs.remote.autostart
dom.ipc.processCount ->2
toolkit.cosmeticAnimations.enabled ->false
browser.sessionhistory.max_total_viewers ->4
browser.sessionhistory.max_entries ->10
browser.sessionstore.interval ->60000
dom.max_script_run_time
browser.cache.disk.capacity ->50000
browser.cache.offline.capacity ->512000

apart, settings from https://github.com/pyllyukko/user.js, disabling many features and hardening security seems to save cpu and memory occupancy.

分开,设置https://github.com/pyllyukko/user.js,禁用许多功能并加强安全性似乎可以节省cpu和内存占用。


for Chromium, following tweaks have a similar effect:

对于Chromium,以下调整具有类似的效果:


# following need to be passed as commandline args to chromium
## process count
--process-per-site
# or
--single-process # bad in terms of security

## hardware accel
--ignore-gpu-blocklist # use with care, gpu may not be support and cause instability
--enable-gpu-rasterization
--enable-zero-copy

## video decode
--disable-features=UseSkiaRenderer
--enable-features=+VaapiVideoDecoder
--enable-features=+CanvasOopRasterization

## use opengl
--use-gl=egl
## or vulkan if supported (will disable gl)
--enable-features=+Vulkan

Additionally, setting user / cache data dirs to tmpfs (RAM) and using profile-sync-daemon, to restore persistance across sessions, though this approach is more applicable for saving cpu and sdcard write based failures than for saving memory.

此外,将用户/缓存数据目录设置为tmpfs(RAM),并使用配置文件同步守护进程来恢复会话间的持久性,尽管这种方法更适用于保存基于cpu和SD卡写入的故障,而不是保存内存。


--user-data-dir=/tmp/.chromium-user-data
--disk-cache-dir=/tmp/.chromium-cache

Please feel free to suggest alternatives or additions.

请随时提出替代方案或补充方案。


更多回答

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com