Giter Club home page Giter Club logo

Comments (5)

martinbeentjes avatar martinbeentjes commented on August 28, 2024

That is strange behavior, there is an old issue with a same status. So when you remove the tmux-battery related parameters from your status-right the CPU spikes disappear? Did you test any of those three parameters you used?

from tmux-battery.

BensonMuriithi avatar BensonMuriithi commented on August 28, 2024

The spikes stopped when I removed the uses of tmux-battery without any further intervention. I've since had tmux running for more than 50 hours and it's all ok. I did try disbaling each of the three flags separately and resourcing. I noticed that for each removed flag the spikes in cpu use would be smaller - peaking at 50% - but were still present. Disabling any two flags simultaneously would reduce the spikes just a bit more. I did however not notice any flag to have any greater consequence than any of the other two.

I should add that though most times the issue occurred with the battery fully charged, it would not stop even after the battery would then start discharging to any level or even charging again. The indicators are also accurate and in line with the system indicators.

from tmux-battery.

martinbeentjes avatar martinbeentjes commented on August 28, 2024

In the recent days I have been recognizing this behavior myself as well. For me it is not a single spike. I was monitoring the system for a while and it kept peaking at 100% for quite a while. And when I closed tmux, the CPU usage went back to normal.

And having my terminal doing the things I always do, does not make my CPU usage peak at all. I have not ruled out the reason for my personal problem. I will look into the question if it is caused by tmux-battery. I'll keep this updated.

from tmux-battery.

rux616 avatar rux616 commented on August 28, 2024

I was just experiencing a similar (though not as extreme) symptom. I am using Fedora 29 and when using upower to check the battery, I saw about an average 5% bump in sustained CPU usage. When I changed the scripts locally to call acpi instead, my CPU usage dropped down to my baseline again.

Has anyone else seen this? Would this be a good reason to use acpi instead of upower as the first choice?

from tmux-battery.

martinbeentjes avatar martinbeentjes commented on August 28, 2024

@rux616 Thank you for your comment. When Googling on excessive power usage of upower it seems to be a general problem. I see bug reports from back in 2011, some in 2014.

If acpi and upower are available on a machine and acpi does not cause those cpu and memory spikes, then choosing acpi over upower seems okay to me.

The comment https://bugs.launchpad.net/ubuntu/+source/upower/+bug/876279/comments/7 also tells something interesting: a possible flooding of monitoring events on the battery.

I am curious if we could get to know what exactly causes upower to randomly request this amount of cpu.

from tmux-battery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.