Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage using Filter lists and custom Filter Lists #30543

Open
ChitranshuV opened this issue May 24, 2023 · 2 comments
Open

High memory usage using Filter lists and custom Filter Lists #30543

ChitranshuV opened this issue May 24, 2023 · 2 comments
Assignees
Labels
feature/shields/adblock Blocking ads & trackers with Shields OS/Android Fixes related to Android browser functionality OS/Desktop perf

Comments

@ChitranshuV
Copy link

Description

The memort footprint of "browser" process in the Brave in-built task-manager reports very high value when using additional filters list from the pre-selected options or by adding custom lists. This is visible even without opening any website and just being on the homepage (Brave Dashboard)

Memory usage without any filter list = < 200 MB
Memory usage with only 5-6 filter list from the options = ~ 650 MB
Memory usage with 5-6 filter list and 6 additional custom filter list = 800 - 1000 MB

Filter List that I am using:

  • EasyList Cookie
  • Fanboy's Annoyance
  • Fanboy's Social
  • uBlock Annoyances
  • Bypass Paywalls Clean Filters
  • Blocklists Anti-Porn

Custom Filter List that I was using:

Steps to Reproduce

  • Start browser clean without any extensions or changing settings
  • Trackers and Adblocking is set to Aggresive
  • Try various combinations of Filter Lists by checking from given options or adding additional custom list
  • Check the memory footprint of the "browser" process by pressing Shift+Esc in Brave

Desktop Brave version:

Brave 1.52.109 Chromium: 114.0.5735.26 (Official Build) beta (64-bit)
Revision 7075cbb66f0542ac3e01ddfde6b813e7d61118a5-refs/branch-heads/5735@{#454}
OS Linux

System Information

Operating System: Arch Linux
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: HP
Product Name: Victus by HP Laptop 16-e0xxx

@ChitranshuV ChitranshuV added OS/Android Fixes related to Android browser functionality OS/Desktop labels May 24, 2023
@antonok-edm antonok-edm added feature/shields/adblock Blocking ads & trackers with Shields perf labels Jul 13, 2023
@antonok-edm antonok-edm self-assigned this Jul 13, 2023
@ChitranshuV
Copy link
Author

This problem still exists and still causes huge memory usage when using custom lists. uBlock Origin also sees a spike in memory usage when using custom lists, but the increase is quite modest; about 20 to 30MB.

The difference between not using custom lists and using them in Brave is quite huge: 224MB vs. 616MB in my case.

This is my current setup:

  • Brave | 1.65.87 Chromium: 123.0.6312.46 (Official Build) beta (64-bit)
  • Revision | 2babfcf82ebba4c5dc0146d2ca66229ffd3ac02d
  • OS | Windows 11 Version 23H2 (Build 22631.3296)

These are the following custom lists that I am using:

How to Reproduce - Please see the memory usage of 'Browser' in the Brave Task Manager

See the screenshots below:

Enabling custom list
image

Disabling custom list
image

@ChitranshuV
Copy link
Author

ChitranshuV commented Sep 4, 2024

Bumping up this issue again.

Issue still persisting in

Brave	        1.70.94 Chromium: 128.0.6613.114 (Official Build) beta (64-bit) 
Revision	7ee7ec28264896bd8a9aff39cdb9432da38be028
OS	        Linux
JavaScript	V8 12.8.374.24
$ inxi -S
System:
  Host: fedora Kernel: 6.10.6-200.fc40.x86_64 arch: x86_64 bits: 64
  Desktop: Cinnamon v: 6.2.9 Distro: Fedora Linux 40 (Cinnamon)

I'm sure some overhead is inevitable when you have more blocklists than the default one, but as you can see in the screenshot below, there is almost 300 MB difference in memory usage of "Browser" process before and after enabling three popular custom blocklists.

Screenshot from 2024-09-04 17-50-06

Screenshot from 2024-09-04 17-50-22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/shields/adblock Blocking ads & trackers with Shields OS/Android Fixes related to Android browser functionality OS/Desktop perf
Projects
None yet
Development

No branches or pull requests

3 participants