Skip to content

High energy consumption on Mac #1935

Closed
Closed

Description

@cisoun

Hi,

I was using SqliteBrowser on my Mac in the train and I've noticed that something was using a high quantity of energy. I took a look at the Activity Monitor and it seems the responsible was SqliteBrowser using the GPU. Is that normal ? I guess it's related to Qt but it still seems weird to me.

Here are some screenshots (excuse the french language but I think you can see my point):

Capture d’écran 2019-07-09 à 08 57 19

Capture d’écran 2019-07-09 à 08 57 34

I'm using a Macbook Pro 2018 with Mac OSX Mojave 10.14.5.
Using SqliteBrowser 3.11.2, also concerns 3.11.99 (nightly).

Thanks.

Activity

  1. chrisjlocke commented on Jul 9, 2019

    @chrisjlocke
    Member
  2. scottfurry commented on Jul 9, 2019

    @scottfurry
    Contributor

    And fellow classmates said High School French wouldn't become relevant in later life... 😜

    @cisoun
    Nothing jumps out looking at the System Activity window.. Only thing that is an "annoyance" for me is the whether the system can be put in sleep mode ('App Nap` is Non for DB4S from your screen capture). I ran into that painfully realization dealing with 'Civilization' on wife's Mac. Couldn't figure out why the computer would not go into sleep mode until I tripped over an obscure blog post in Civ Forums. See here for more info.

    A google search of "MacBook Mojave Qt high CPU usage" brought up no recent postings. Qt's MacOS Issues page makes no mention of CPU/GPU problems.

    Let's fix the "sleep' setting and continue to monitor with more information about how you're using DB4S. Work for you?

  3. cisoun commented on Jul 9, 2019

    @cisoun
    Author

    Hi,

    @chrisjlocke
    Yes it triggers the discrete GPU (ATI) right away after the opening. No need to open a database.
    I was working a small database (11 tables) and it doesn't seem to use more ressources than having no database open.

    @scottfurry
    You're right. I'm just wondering why the discrete GPU is trigged, which is often a high consumer of energy. I can also feel it heating but not that much.
    Letting SqliteBrowser on background makes the "App Nap" switch to "Yes" after a while though. I can't tell if it is good or not so far.

    I will make more tests this afternoon but I the case of yesterday, I saw my battery draining and I noticed OS X pointing SqliteBrowser as a high consumer. I'll post my results later.

  4. chrisjlocke commented on Jul 9, 2019

    @chrisjlocke
    Member
  5. cisoun commented on Jul 9, 2019

    @cisoun
    Author

    In fact, I'm using my phone for mobile connection so I did have network but the battery was still draining a little bit faster than usual in this situation. I will do some tests without network anyway to see if it helps.

  6. cisoun commented on Jul 9, 2019

    @cisoun
    Author

    Hello again,

    Here are my results:

    • Laps 1 (green): Firefox
    • Laps 2,3 (yellow): NPM + PHP Artisan + Atom + Firefox + SqliteBrowser
    • Laps 4 (red): NPM + PHP Artisan + Atom + Firefox

    Capture d’écran 2019-07-09 à 19 57 30

    As you can see, the battery usage per hour is slightly higher at laps 2 and 3. I wasn't really using SqliteBrowser that much but I still suspect its GPU usage to be responsible of this.

    However, I don't think it should be critical and that is just something that I've noticed so feel free to ignore my issue.

    What are you thoughts about this ?

  7. mgrojo commented on Jul 9, 2019

    @mgrojo
    Member

    Could be related to #1233? Just a wild guess, but it could be confirmed if the last nightly before the change works, while the first nightly with the change doesn't.

  8. justinclift commented on Aug 19, 2020

    @justinclift
    Member

    @cisoun If you're still interested in a solution to this, it should be fixed in our nightly builds from tomorrow onwards. 😄

  9. cisoun commented on Aug 20, 2020

    @cisoun
    Author

    @justinclift Great news! I'll take a look. Thanks for the fix! :)

  10. justinclift commented on Aug 20, 2020

    @justinclift
    Member

    You're welcome. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions