Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-13-2019, 07:13 AM   #1
patrik
Addict
patrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy blue
 
Posts: 393
Karma: 13280
Join Date: Jan 2010
Location: Sweden
Device: Kobo Aura HD, Pocketbook InkPad 3
Sigil memory usage

v0.9.10 compiled on Linux Mint 19.1.

I have been working on a book for about a month and I noticed that every time I got back to Sigil it took plenty of seconds before it got "active". As in being swapped into RAM again.

Using top it showed that Sigil was using about 50% of the memory (of 12 GB).
I quit Sigil and restarted. It used pretty much "nothing" as expected.

Now, about 4-5 days later it uses 18,5%.

The epub is 2.5 MB (5 images).

I know top and ps are not completly accurate, but I'm guessing accurate enough in order to show that Sigil is using more than I would have thought.

Is this normal, or is there a memory leak?
patrik is offline   Reply With Quote
Old 02-13-2019, 08:43 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 19,809
Karma: 101452854
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by patrik View Post
Is this normal, or is there a memory leak?
I've noticed a slight delay whenever launching Sigil before anything becomes active (menus, tabs, etc) on my Arch Linux system. But I don't think it's a memory leak. I've not been able to track down what's causing it, or when exactly it first manifested. My guess is it that it began with a certain version of Qt, rather than with Sigil itself. I've not tested in a while, but I'd be willing to bet the issue doesn't manifest if Sigil is built against the Qt5.6.x series.

The bottom line is: it's not just you. I'll keep looking.
DiapDealer is online now   Reply With Quote
Advert
Old 02-13-2019, 09:08 AM   #3
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,226
Karma: 1958102
Join Date: Nov 2009
Device: many
If the Sigil app is actually sleeping any memory leaking must be in the Qt event loop as Sigil proper code is doing nothing at that point. A search of memory leaks and Qt reveals quite a long list of issues, some even platform specific given Qt reference counting and its internal object memory management. Sigil is also linked to the python3 lib as well, which is also notorious for memory issues.

Not sure if this helps. Based on other gui toolkits over the years, leaving an app open for long long periods of time without at least saving your file and closing the app is probably not a good idea at all.

My 2 cents.
KevinH is offline   Reply With Quote
Old 02-13-2019, 09:26 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 19,809
Karma: 101452854
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
By the way @patrik are you using the cinnamon desktop environment on Mint or something else?
DiapDealer is online now   Reply With Quote
Old 02-13-2019, 09:30 AM   #5
patrik
Addict
patrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy blue
 
Posts: 393
Karma: 13280
Join Date: Jan 2010
Location: Sweden
Device: Kobo Aura HD, Pocketbook InkPad 3
I'm using cinnamon.

I usually work on and off on various books, and some tend to be open for a fairly long time just by default. I always save (and backup) continously of course.

I guess I will start to quit Sigil more often, no biggie I suppose.

Please let me know if there is anything you would like me to test and/or keep an eye out for.

Thanks.
patrik is offline   Reply With Quote
Advert
Old 02-13-2019, 09:37 AM   #6
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 3,226
Karma: 1958102
Join Date: Nov 2009
Device: many
Qt opens various worker threads alongside the main gui thread. Can you use ps to get a memory footprint breakdown by thread both before and after a long period of sleep. It would be interesting to see where the memory leak is biggest and what Sigil is doing in its idle state.

I have tried doing memory testing under Mac OSX but do not see huge memory leakage like you are.
KevinH is offline   Reply With Quote
Old 02-13-2019, 10:23 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 19,809
Karma: 101452854
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm noticing a delay before things become active even when first launching Sigil (or when it regains focus after a short time away). I don't really notice any difference when Sigil is left open a long time. I'll try to do some testing in the next few days. There's been some issues lately on various Linux distros involving d-bus upgrades/configs that have been known to cause delays as well.
DiapDealer is online now   Reply With Quote
Old 02-13-2019, 02:10 PM   #8
patrik
Addict
patrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy bluepatrik can differentiate black from dark navy blue
 
Posts: 393
Karma: 13280
Join Date: Jan 2010
Location: Sweden
Device: Kobo Aura HD, Pocketbook InkPad 3
Hmm, it's been a while since I had to dig around the parameters of ps. It bugs me I can't seem to find some easy way to show memory usage for each thread.


Code:
ps -p 3060 -O pid,spid,pmem,vsz,rss,cmd -c -T
  PID   PID  SPID %MEM    VSZ   RSS CMD                         S TTY          TIME COMMAND
 3060  3060  3060 14.7 5647660 1770520 sigil                    S ?        00:08:30 sigil
Code:
$ ps -T -p 3060
  PID  SPID TTY          TIME CMD
 3060  3060 ?        00:07:00 sigil
 3060  3062 ?        00:00:04 sigil
 3060  3063 ?        00:00:14 QXcbEventReader
 3060  3064 ?        00:00:00 QDBusConnection
 3060  3065 ?        00:00:04 Qt bearer threa
 3060  3066 ?        00:00:01 Thread (pooled)
 3060  3067 ?        00:00:01 Thread (pooled)
 3060  3068 ?        00:00:01 Thread (pooled)
 3060  3069 ?        00:00:01 Thread (pooled)
 3060  3071 ?        00:00:00 sigil:disk$0
 3060  3076 ?        00:00:06 sigil
 3060  3079 ?        00:00:17 sigil
 3060  3080 ?        00:00:17 sigil
 3060  3081 ?        00:00:16 sigil
 3060  3120 ?        00:00:00 sigil
 3060  3121 ?        00:00:00 sigil
 3060  3122 ?        00:00:00 sigil
patrik is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre memory usage - Linux Dapper Calibre 11 03-07-2016 11:03 PM
n2a card memory usage jvik Android Devices 1 04-10-2015 02:28 PM
Memory usage jessie102 Calibre 4 01-29-2015 12:44 PM
Extreme memory usage MJBoa Calibre 1 02-12-2010 11:37 AM
Memory Usage BCCISProf Sony Reader 15 05-16-2007 08:11 PM


All times are GMT -4. The time now is 08:04 AM.


MobileRead.com is a privately owned, operated and funded community.