| Summary: | insane baloo_file (and plasmashell) 256 GB virtual memory size | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-baloo | Reporter: | skierpage <info> |
| Component: | Baloo File Daemon | Assignee: | Pinak Ahuja <pinak.ahuja> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | kde, opensource, rdieter |
| Priority: | NOR | ||
| Version First Reported In: | 5.33.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
skierpage
2017-05-12 05:50:26 UTC
fyi, the VIRT table of memory you reference is not a good metric. RES+SHR is a better measure of real usage. (In reply to Rex Dieter from comment #1) > fyi, the VIRT table of memory you reference is not a good metric. RES+SHR > is a better measure of real usage. Sure. But it's not free to maintain mapping for 1/4 Terabyte of VM. And if the cause of the enormous virtual size is the wrong huge size for baloo/index, something seems wrong in how Baloo accesses this file. It seems this is intentional. In https://code.woboq.org/qt5/kf5/baloo/src/engine/database.cpp.html there's the comment * size limit for database == size limit of mmap * use 1 GB on 32-bit, use 256 GB on 64-bit and 256 GB is what baloo passes to OpenLDAP Lightning Memory-Mapped Database Manager's mdb_env_set_mapsize() function. That seems odd to me but I can't immediately see why this is the cause of baloo_file consuming 99% CPU. I guess it's more plausible my baloo/index file is corrupt. (In reply to skierpage from comment #3) > ... I can't immediately see why this is the cause of > baloo_file consuming 99% CPU. I guess it's more plausible my baloo/index > file is corrupt. I blew away my ~/.local/share/baloo/index and changed folders[$e] in ~/.config/baloofilerc to index less of my Windows partition, and after `balooctl start` I didn't have problems with baloo_file_index, and still had 256 GB baloo_file process and 261 GB plasmashell processes. So maybe this bug is INVALID, just a design choice to freak semi-knowledgeable users out :-) Virtual memory is just that, virtual. You don't need that size mapping in a VM. You don't need any more actual memory. It's not a relevant number of anything. |