RAM 50% just for browser any solution

RAM 50% just for browser(brave) any solution

 System:
Kernel: 5.18.11-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=7a6526ce-88e4-40a8-95cf-54dfd046b840 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.25.3 tk: Qt v: 5.15.5 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Convertible System: LENOVO product: 81X2 v: IdeaPad Flex 5 14ARE05
serial: <superuser required> Chassis: type: 31 v: IdeaPad Flex 5 14ARE05
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
serial: <superuser required> UEFI: LENOVO v: EECN36WW date: 05/17/2021
Battery:
ID-1: BAT0 charge: 50.7 Wh (95.7%) condition: 53.0/52.5 Wh (100.9%)
volts: 12.7 min: 11.6 model: LGC L19L3PD6 type: Li-poly serial: <filter>
status: discharging cycles: 565
CPU:
Info: model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 type: MCP
arch: Zen 2 gen: 3 built: 2020-22 process: TSMC n7 (7nm) family: 0x17 (23)
model-id: 0x60 (96) stepping: 1 microcode: 0x8600106
Topology: cpus: 1x cores: 8 smt: <unsupported> cache: L1: 512 KiB
desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
desc: 2x4 MiB
Speed (MHz): avg: 1397 high: 1400 min/max: 1400/2000 boost: enabled
scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1397 2: 1397
3: 1397 4: 1397 5: 1400 6: 1397 7: 1396 8: 1397 bogomips: 31938
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN 5.1
process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1 empty: HDMI-A-1
bus-ID: 04:00.0 chip-ID: 1002:1636 class-ID: 0300
Device-2: Acer Integrated Camera type: USB driver: uvcvideo bus-ID: 1-4:3
chip-ID: 5986:212a class-ID: 0e02
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.3
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 mapped: eDP model: ChiMei InnoLux 0x1406 built: 2019
res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2 size: 309x173mm (12.17x6.81")
diag: 354mm (13.9") ratio: 16:9 modes: max: 1920x1080 min: 640x480
OpenGL: renderer: AMD RENOIR (LLVM 14.0.6 DRM 3.46 5.18.11-zen1-1-zen)
v: 4.6 Mesa 22.1.3 direct render: Yes
Audio:
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 04:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x,
snd_pci_acp6x, snd_acp_pci, snd_sof_amd_renoir
pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 04:00.6 chip-ID: 1022:15e3
class-ID: 0403
Sound Server-1: ALSA v: k5.18.11-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 16.1 running: no
Sound Server-3: PipeWire v: 0.3.55 running: yes
Network:
Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Lenovo driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 2000 bus-ID: 02:00.0 chip-ID: 10ec:c822
class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
bus-ID: 3-4:3 chip-ID: 0bda:c123 class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 2 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Drives:
Local Storage: total: 476.94 GiB used: 48.32 GiB (10.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 model: NVME 512G size: 476.94 GiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4
type: SSD serial: <filter> rev: T1102A0L temp: 35.9 C scheme: GPT
Partition:
ID-1: / raw-size: 307.69 GiB size: 307.69 GiB (100.00%)
used: 48.12 GiB (15.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 199.1 MiB (66.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 307.69 GiB size: 307.69 GiB (100.00%)
used: 48.12 GiB (15.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 307.69 GiB size: 307.69 GiB (100.00%)
used: 48.12 GiB (15.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 307.69 GiB size: 307.69 GiB (100.00%)
used: 48.12 GiB (15.6%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.14 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 40.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 279 Uptime: 12m wakeups: 5 Memory: 7.14 GiB
used: 3.88 GiB (54.4%) Init: systemd v: 251 default: graphical
tool: systemctl Compilers: gcc: 12.1.0 clang: 14.0.6 Packages: pacman: 1551
lib: 361 Shell: fish v: 3.4.1 running-in: konsole inxi: 3.3.19
Garuda (2.6.5-1):
System install date:     2022-06-11
Last full system update: 2022-07-15
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:            systemd-networkd-wait-online.service
1 Like

A few things.

  • Browsers use a lot of memory
  • Linux tries to utilize memory so when there is no demand for memory from other applications, it may not show as free. That doesn't mean it is isn't available for other applications.
  • Please read through https://www.linuxatemyram.com/. It explains some of this in more detail
11 Likes

Your whole system is using 50% RAM, not just your browser. Run top to see what is using memory.

7 Likes

Here are my Firefox processes tab and system monitor captures. They show the main process using nearly 1GB and the kernel reports it is using almost 2GB in total (including all processes and threads). This is with 4 tabs open. However, if I open 10 tabs it often goes up slower, maybe only going up to about 2-4 GB range and hovering in that range unless I open A LOT of tabs. This is normal.

Modern browsers have a lot of moving pieces and take up a lot of memory. They launch processes and threads for rendering, processing parts of websites, running scripts, decoding audio and video, etc. Most now have a separate process for each tab or set of tabs. They may also allocate a bit of extra memory in anticipation of loading more tabs so that they open faster. Unless the browser starts eating up all the memory when it should be doing nothing (a memory leak), like @dalto said, I wouldn't worry about it.

1 Like

The other solution is to buy more RAM. :grin:

8 Likes

Jon, you're starting to sound as smartassed as me. Stop that!
:rofl:

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.