IMHO, as a daily user (yes, Haiku is my main OS),
the most important issue is the memory leaks over time.
(System has 8GB of RAM)
These are the stats with no programs running:
After 1 week, 6 days, 20 hours of uptime:
Memory usage: 6.16GB
Buffer memory usage: 291.8MB
Swap 1.39GB
After reboot:
Memory usage: 619.46MB
Buffer memory usage: 641.81MB
Swap: 0
3 Likes
What’s “Buffer memory usage”? That’s not a category I know.
There was a slow memory leak caused by ping
that was fixed in the nightly builds, other than this I don’t know of any memory leaks as fast as what you show here. I just checked one of the package builders: it has an uptime of 78 days, and currently has ~7GB free and most of the remaining GB is used in caches, which is expected.
So, what does your usage pattern look like? Can you try and narrow down what applications cause the leak?
Buffer memory usage is what activity monitor calls it,
Total usage, buffer usage and swap.
I use falcon(90%+), qmplay and on occasion the video and audio players
I have tried to just reboot, leave it on the desktop with only activity monitor running, and memory usage creeps up by about 1MB per minute without interaction
Maybe it is related to graphics somehow, since most of programs listed use moving graphics(including activity monitor), and Im guessing the package builder you mentioned isnt heavy on the graphics
You must be using a language other than English then, because the original term here is “Cached memory”.
Is it connected to the network? Any other programs open in the background? Is it one of the default open applications that’s using more and more (check ProcessController memory usage statistics), and not the kernel?
I started running some test with my newly bought system, fresh install of beta5,
using slayer instead of activity monitor for more detailed info, taking screenshots every now and then with flameshot, but otherwise not using the system.
Will report my findings tomorrow, I need a good sample size first,
and then analyze and calculate the data.
3 Likes
Ok, I spent the last 12 hours doing a few (4 different scenarios),
These are my findings:
I was wrong about it being related to graphically “intense” applications,
it must be in the base system somehow.
The weird thing is that none of the applications increase in memory usage
as fast as the usage goes up, it doesnt seem to be tied to network, graphics or audio,
it’s just inherent in the system somehow?
As the final test, I restarted the system, started flameshot, opened activity monitor,
took a screenshot, waited 5 minutes, took another screenshot,
calculated the increase in memory usage and it was quite a bit worse than I thought,
I previously said 1MB per minute, but it turned out to be 7.382MB per minute,
with no matching application growing that much in that time.
I’m befuddled, it isnt tied to a program, or user activity that can explain the source.
If you want me to run more specific test, I have 3 Haiku machines to play with,
so running long term tests is fine with me, and I have the free time to do it.
Im pondering looking through the source code, but I dont know where to begin searching,
maybe a dev can point me in the right direction that is more familiar with the source?
1 Like
Does it happen on all 3 of your machines, or only one of them?
Does it happen when they are disconnected from the network? (unplug cables even if you can, or just don’t connect to WiFi after boot if wireless)
1 Like