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

Does Kiwix uses more memory as Chrome? #1296

Open
y1111 opened this issue Dec 20, 2024 · 9 comments
Open

Does Kiwix uses more memory as Chrome? #1296

y1111 opened this issue Dec 20, 2024 · 9 comments
Assignees
Labels
Milestone

Comments

@y1111
Copy link

y1111 commented Dec 20, 2024

i expected more efficient like a pdf reader or notepad . but this app takes 100-200mb per page it opens , with 2-4 tbas its already more than a GB
for compare thats how much chromium or ff browsers take per tab in wikipedia , but its also full featured browser much more complex.
and the browser even have the task managers in with i can select and kill some tabs to release ram
for compare too , in simple "links graphics" browser (without js) it takes a mere ~10-15mb per tab (the same pages) (with images)

@kelson42 kelson42 added this to the 2.5.0 milestone Dec 20, 2024
@kelson42 kelson42 self-assigned this Dec 20, 2024
@kelson42
Copy link
Collaborator

Considering that at the core, it works exactly like a browser... not a surprise the meomery consumption is the same. All of this is manage by Qt anyway, we have no way to control much memory usage there.

@y1111
Copy link
Author

y1111 commented Dec 20, 2024

can this browser that qt make be configured ? like disable js ? this probalby would make it smaleer and faster.
i just oipened to see in k-meleon browser - simpler but it have js and its enable . and from opening at 80-85mb it goes only to 95-99mb so about 20mb more for the wioki page, and with js enabled (i even open 2 more pages and only 20-30mb more in ram)

@y1111
Copy link
Author

y1111 commented Dec 20, 2024

and it seems it doesnt even release the memory back when closing tabs . i just looked the app is still opened here in backgroundand just checked in taskmngr it takes 800MB , just with 2 tiny tabs barely 1 image.

then i click in some link open 3 tabs total 5 tabs only it takes 1166MB .
look even comparing to browsers , opera is opened with some 50-70 tabs taskmgr show 43 processes an this all taking only 1882MB
(also opera have some 30-40 separeta processes half less 10mb and some 10-50 3 200~mb . so lets say a GB more even 3GB for ~60tabs)
really inefficient, not scaling well

@y1111
Copy link
Author

y1111 commented Dec 20, 2024

i see here #1244 (comment) u say will move to qt6 . will this make it more efficient is this memory use ?
and the app is lika a browser made in qt , is it ? any links or how it works and details . to help me or newbies wanting to contribute to understand faster

that seems interesting https://www.reddit.com/r/browsers/comments/mqe9su/i_am_making_an_ultralightweight_web_browser_for/
https://github.com/niutech/qt-ultralight-browser/

@kelson42
Copy link
Collaborator

All of this is handled by https://wiki.qt.io/QtWebEngine, which is basicaly a Chromium in Qt. I don't think moving tomQt6 will change anything fundamental. This is so intricated in Qt that we can not change this. Closing this issue, are I see nothing which can be done.

@kelson42 kelson42 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2024
@veloman-yunkan
Copy link
Collaborator

All of this is handled by https://wiki.qt.io/QtWebEngine, which is basicaly a Chromium in Qt. I don't think moving tomQt6 will change anything fundamental. This is so intricated in Qt that we can not change this. Closing this issue, are I see nothing which can be done.

@kelson42 I don't think that such tickets should be closed based on pure guesswork without actually investigating whether there is a problem that is in our area of responsibility.

@kelson42
Copy link
Collaborator

kelson42 commented Dec 22, 2024

@veloman-yunkan To make an investigation somthing should be clearly buggy... or at least suspicious. I see nothing in this report which let me think something does not work as expected. Do you? A clear comparison with Chromium showing that for the same content, the memory consumption is widely higher would be such of a clear hint for example that something is wrong.

@veloman-yunkan
Copy link
Collaborator

@kelson42

and it seems it doesnt even release the memory back when closing tabs

This may be wrong assessment, but at least it has to be looked into.

@kelson42 kelson42 reopened this Dec 22, 2024
@kelson42
Copy link
Collaborator

A clear comparison with Chromium showing that for the same content, the memory consumption is widely higher would be such of a clear hint for example that something is wrong.

@y1111 Would you be able please to provide such a benchmark with all the details so a dev could try to reproduce it (when something is clearly wrong)?

@kelson42 kelson42 changed the title it uses as much ram as a full featured browser like ff or chrome Does Kiwix uses more memory as Chrome? Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants