exelban / stats

macOS system monitor in your menu bar
MIT License
25.77k stars 850 forks source link

Continuous notification Swap file every second #2208

Open warmup72 opened 3 days ago

warmup72 commented 3 days ago

If you configure Stats to send a message as soon as a swap file is created, you will be spammed with messages. As soon as the event occurs, you will receive a message every second. As a swap file can hardly be reduced in size, for me this means either stopping Stats or continuing to be spammed.

An ignore nn-minute button would be helpful

exelban commented 3 days ago

or you can just disable the swap size notification. New notification will not be shown if: the previous was dismissed or the previous state was changed to the normal state.

warmup72 commented 3 days ago

Thanks for the tip, but that doesn't help with the problem. See it as a feature request. I would like to be notified when my swap reaches a certain size, but not every second, but at longer intervals

exelban commented 3 days ago

And it must be like that. The only way that you have repeating notification is that your swap goes lower that threshold, and then notification disappear. And appear when it goes more than threshold.

exelban commented 3 days ago

Does the notification blinking? I mean appear and disappear, or you have a tons of notification stacked?

warmup72 commented 3 days ago

The message appears and disappears, but the size of the swap file doesn't changes in the message. The messages are then stacked.

exelban commented 2 days ago

If appear and disappear it means that value goes below threshold. I will make a debug build for you to debug that.

warmup72 commented 2 days ago

Thank you for that, because it can't really be. I have set a notification at 50MB. As far as I know, a swap file simply grows on a Mac. I have not yet noticed a significant reduction. Unfortunately, I decided in favour of ‘only’ 18GB for my M§, so I have to deal with the swap :-)

exelban commented 2 days ago

Stats.dmg.zip

This build writes some logs to the log.txt that could be found in the Documents folder.

warmup72 commented 2 days ago

Sorry - now in English:

Good evening, I tried this right away. At the beginning everything looked good, right after I had 1.7GB swap it started. Messages every second. Right now I'm getting 1.5GB messages every second. The funny thing is, when I try to record the messages with Omni Recorder they disappear until I stop recording :-) log.txt

exelban commented 2 days ago

sorry, but could you use English please?

warmup72 commented 1 day ago

Sorry now in English

exelban commented 1 day ago

please record a video of notification behavior. Cause I cannot reproduce that( and cannot understand what causing that.

warmup72 commented 1 day ago

Unfortunately, I can't make a screen recording of the problem because the messages stop as soon as I start the recording. Here is a video of the problem recorded with my mobile phone

https://github.com/user-attachments/assets/13282507-b4af-4ab5-9c65-7a4a42c608a6

I have the feeling that the messages only start to appear so massively when the swap file gets smaller again for the first time. As long as I use more memory I only get a message >Memory utilised with xx%<. As soon as the swap gets smaller it starts

exelban commented 1 day ago

hmm, thx. Will try to reproduce that. It's definitely looks like notification disappear and appear again...

warmup72 commented 1 day ago

I use brave :-) to fill up the memory. Just open 5 windows in which xx videos are played. After the swap message appears for the first time, simply start closing the tabs until the messages start to run.

exelban commented 1 day ago

Stats.dmg.zip

try please this build and share the logs

warmup72 commented 1 day ago

Many thanks for the quick reply. I will be away from my Mac until Thursday. I'll get back to you as soon as I'm back on