Project

General

Profile

Constant Disk IO

Added by Harald Nehring over 11 years ago

While trying to get my media disk array to spin down when not used I detected that the tvheadend server process constantly produces a couple of kb/s disk writes, even when not recording or timeshifting. I tried disabling "idle scanning" and the DVB EPG and socket-based XMLTV grabbers, but to no avail. Lsof shows a bunch of open FIFOs and "anon_inode" entries, but nothing that hints at where tvheadend writes to all the time.

Do we know what causes this behaviour? Any chance to improve this? I'm not sure if a TV server process needs to constantly write to disk if its not recording or timeshifting.

Best, Harald

System: Ubuntu Server 10.04
Build: 3.3.484~g9370273
Cards: 2x CaBIX-C2 (Philips TDA10023) DVB-C, 1x PVR-150


Replies (5)

RE: Constant Disk IO - Added by Mark Tucker over 11 years ago

Not sure if this is the same problem but i have tvheadend running in openelec.
And to my amazement it is constantly accessing the usb stick,i have never noticed this before in previous versions.
But then again i have other concerns with this version (Timeshifting not working for me all of a sudden)

RE: Constant Disk IO - Added by dude duse over 11 years ago

Hi,
i have the same problem. Every 2-3 seconds a disk I/O (write)

Skip initial scan ON
Autodetect muxes OFF
Idle scanning OFF

Active Subscriptions:
127.0.0.1 Title:XBMC Channel:ProSieben Status:Running

OpenElec 3RC4 / Tvheadend 3.3.485~gf4dda1b

#cd dvbmuxes
#stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head

output:

root /tmp/dvbmuxes/_dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend # stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head
Modify: 2013-03-06 12:06:11.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
root /tmp/dvbmuxes/_dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend # stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head
Modify: 2013-03-06 12:06:13.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:09.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
Modify: 2013-03-06 12:06:06.000000000
root /tmp/dvbmuxes/_dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend # stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head
Modify: 2013-03-06 12:06:15.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
Modify: 2013-03-06 12:06:14.000000000
root /tmp/dvbmuxes/_dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend # stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head
Modify: 2013-03-06 12:06:21.000000000
Modify: 2013-03-06 12:06:18.000000000
Modify: 2013-03-06 12:06:18.000000000
Modify: 2013-03-06 12:06:18.000000000
Modify: 2013-03-06 12:06:18.000000000
Modify: 2013-03-06 12:06:15.000000000
Modify: 2013-03-06 12:06:15.000000000
Modify: 2013-03-06 12:06:15.000000000
Modify: 2013-03-06 12:06:15.000000000
Modify: 2013-03-06 12:06:15.000000000
root /tmp/dvbmuxes/_dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend # stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head
Modify: 2013-03-06 12:06:25.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
root /tmp/dvbmuxes/_dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend # stat _dev_dvb_adapter0_TurboSight_TBS_6922_DVBS_S2_frontend1* | grep Modify | sort -r | head
Modify: 2013-03-06 12:06:27.000000000
Modify: 2013-03-06 12:06:27.000000000
Modify: 2013-03-06 12:06:27.000000000
Modify: 2013-03-06 12:06:27.000000000
Modify: 2013-03-06 12:06:27.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000
Modify: 2013-03-06 12:06:24.000000000

RE: Constant Disk IO - Added by Harald Nehring over 11 years ago

Yes, I'm seeing the same behaviour of writing to the muxes every 2 seconds. Not that anything changes in the file content, so I'm wondering if this load is really necessary. On the other hand it's an unstable release, maybe some debugging going on...

RE: Constant Disk IO - Added by Adam Sutton over 11 years ago

Please log as an issue. Though I have a feeling this relates to another already known problem.

Adam

RE: Constant Disk IO - Added by Dag Wieers over 11 years ago

I reported a similar (the same ?) issue related to OpenELEC. Since I am using tvheadend on an SSD disk and these files are directed to the disk (and not a tmpfs filesystem) it is really harming my disk in the long run.

Issue reported here:

https://www.lonelycoder.com/redmine/issues/1660

    (1-5/5)