saveDatabaseInterval > 0 can result in regular heavy drive access
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qpdfview |
Fix Released
|
Low
|
Adam Reichold |
Bug Description
I noticed that with qpdfview left running with say 5 pdfs open in 5 tabs, every 30 sec or so there's a burst of drive activity that lasts about 1 second. I eventually realized this has to do with saving per-file information to the database (though I'm not too sure where exactly that is). I have restoreBookmark
After re-enabling restorePerFileS
Changed in qpdfview: | |
milestone: | none → 0.4.11 |
assignee: | nobody → Adam Reichold (adamreichold) |
status: | Triaged → Fix Committed |
Changed in qpdfview: | |
status: | Fix Committed → Fix Released |
Hello,
Am 20.06.2014 10:55, schrieb Martin Spacek: s=false and restoreTabs=true. Disabling ettings reduced the amount of drive activity somewhat, as erval to my
> Public bug reported:
>
> I noticed that with qpdfview left running with say 5 pdfs open in 5
> tabs, every 30 sec or so there's a burst of drive activity that lasts
> about 1 second. I eventually realized this has to do with saving per-
> file information to the database (though I'm not too sure where exactly
> that is). I have restoreBookmark
> restorePerFileS
> did closing some PDFs. Finally, I added saveDatabaseInt
> qpdfview.conf under [mainWindow] and set it to 0. That seems to have
> gotten rid of the drive activity altogether. I'm not sure how to
> accurately track drive activity per-process in Linux.
This is expected as relevant (i.e. whatever "restore*" settings the user share/qpdfview/ qpdfview/ database" (Qt 4) or share/data/ qpdfview/ qpdfview/ database" (Qt 5). It is a plain
has enabled) information is synchronized with the database regularly to
improve reliability. The default value of the timer is 30 seconds. The
database path depends on the XDG environment settings but it is usually
stored in "~/.local/
"~/.local/
SQLite database which you can inspect using for example the "sqlite"
command-line tool.
> After re-enabling restorePerFileS ettings, even with erval=0, per-file view information still seems to be erval, say to 10 min, or just turning it off altogether.
> saveDatabaseInt
> saved, presumably on close. This seems completely sufficient to me. It's
> a bit unnerving seeing so much drive activity during idle, especially if
> running off battery. I'd suggest either greatly increasing the default
> saveDatabaseInt
> If qpdfview crashes, then you lose any changes to your latest tabs and
> views and stuff. Not a big deal. Or perhaps I'm misunderstanding
> something?
Depends on what the definition of "a big deal" is. :-) In any case,
writing to that database should be cheap enough as its total size is
usually just a few kilobytes, so I don't think I want to disable that
function by default but the default timeout of 30 seconds is maybe a bit
too much. How about changing the default value to 5 minutes as compromise?
Best regarsds, Adam.
> ** Affects: qpdfview
> Importance: Undecided
> Status: New
>