View Single Post
Old 05-10-2018, 09:37 AM   #1
seru1us
Member
seru1us began at the beginning.
 
Posts: 10
Karma: 10
Join Date: May 2018
Device: Web Browser
CalibreDB add and Temporary file descriptors filling up disk

Editing to add images as links for everyone's reference.

Hey, everyone-

First post here so forgive me if this is the wrong place to post, tried searching for something similar.

Essentially, I'm using "calibredb add" to add quite a few ebooks. Everything seems to work fine, except for the fact that calibredb seems to keep open file descriptors to the temp folder, which fills it up quickly. Has anyone seen something similar, or have a workaround besides restarting the application and clearing out the descriptors? Here is some information of my system:

calibredb version: (calibre 3.22.1)
uname -a: Linux drax.packet.farm 4.13.16-2-pve #1 SMP PVE 4.13.16-47 (Mon, 9 Apr 2018 09:58:12 +0200) x86_64 x86_64 x86_64 GNU/Linux

Here is a screenshot of the folder size (/mnt/ramdisk is used for the temp folder, note it's current size)

as well as the du -sh inside the /mnt/ramdisk

Now, per this link, I tracked down the disk usage to open file descriptors. Which, to be quite frank, there seem to be a ton of from calibredb. See this for the results of lsof | grep '(deleted)' to see this behavior.


As well as a count for how many open file descriptors there actually are


Based on this info, for some reason the file descriptors are staying open for long enough to fill up the disk and prevent the calibredb command from finishing.

This behavior continues until the disk is full, and then the calibredb breaks.

Anyone have an idea of how to proceed with this? Thanks!

Last edited by seru1us; 05-10-2018 at 11:28 AM. Reason: oversize images deleted
seru1us is offline   Reply With Quote