xbmc.bin, constant disk write at 2.3 MB/s ...
#1
Hi,

I use Gentoo with xbmc from svn (git). I just encountered this: xbmc.bin is writing on my disk at 2.2-2.4 MB/sec constantly, after first movie/video was played. If i restart xbmc, until first video, no problem.

iotop log:
Total DISK READ: 0.00 B/s | Total DISK WRITE: 2.15 M/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
22671 be/4 gigi 0.00 B/s 2.15 M/s 0.00 % 0.00 % xbmc.bin
22687 be/4 gigi 0.00 B/s 0.00 B/s 0.00 % 0.00 % xbmc.bin

In what file it write all of this ? And why ?

10x
Reply
#2
Please read: http://forum.xbmc.org/showthread.php?tid=34655
A debug log is needed to help your further (don't forget to turn on debug logging).
Reply
#3
10x, i will post all the detailles soon.
Reply
#4
30.ian.2011

Today i observed this: even without starting a movie, after some minutes, xbmc.bin has started to write to disk at 2.3 M/s. And it write constantly, until i shutdown program. When i start the program again, it start to write again too, at that speed.

My /tmp is mounted in ram :
tmpfs on /tmp type tmpfs (rw,noatime,mode=1777)
tmpfs on /var/tmp type tmpfs (rw,noatime,mode=1777)

I have an SSD and i need to found where it write, because xbmc is on on my server 24/day.

OS: Linux Heracles 2.6.34-gentoo-r6 #1 SMP Wed Dec 22 15:46:16 UTC 2010 x86_64 Intel® Core™2 Quad CPU Q6600 @ 2.40GHz GenuineIntel GNU/Linux
Install: portage tree, media-tv/xbmc-9999
Revision: XBMC Pre-11.0 R35744 (compiled: jan 16 2011)
Skin: AEON MQ2 ver.2.6.0 - rev. 95

XBMC debug log: http://pastebin.com/PKKrd9wi

iotop:

Total DISK READ: 1378.70 K/s | Total DISK WRITE: 2.23 M/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
4627 be/4 gigi 1378.70 K/s 0.00 B/s 0.00 % 3.73 % xbmc.bin
4053 be/4 gigi 0.00 B/s 2.23 M/s 0.00 % 0.00 % xbmc.bin
Reply
#5
You have "Extract thumbnails and video information" turned on, and you have several movies in zip archives, if one of those zips is compressed, xbmc will decompress it to generate a thumbnail, that will causes a write to disk.
Reply
#6
lsof log: http://pastebin.com/nm0GNLQ7
Reply
#7
No, i just searched on my hard, only couple of subtitles are in zip format, no movies at all.
Reply
#8
I just turned off "Extract thumbnails and video information" and restarted xbmc. Is the same. Write at 2.3 M/s

How do i get to what file it write ? Strace or something ?
Reply
#9
I was wondering the same, strace only shows the file descriptor, iotop only shows total write, and lsof doesn't show if it's writing.
You can of course check with lsof which files it has write access to, can only be a couple files.
Reply
#10
I just founded.

I installed auditd and searched in home/user/.xbmc folder.
It seems xbmc.bin is writing constantly in

/home/gigi/.xbmc/userdata/guisettings.xml
and
/home/gigi/.xbmc/userdata/profiles.xml

If i constantly refresh mc in that path i see guisettings.xml down to 0 bytes and again to normal value. And that two files are alwais at current time modified.

And now the question: why it needs to write in that files, constantly ?
Reply
#11
Can you try with the default confluence skin.
Reply
#12
Already done that. It is the same.
Reply
#13
What happens when you disable all python scripts.
Reply
#14
No, i think i was mistaken. Last test i just changed the skin to confluence.
Now i repeated the test, changed skin to confluence AND restarted xbmc.
All is ok - again i re-loaded aeon skin, restarted xbmc and all is ok !?!?!
Reply
#15
No, i think is something with aeon. I started again to write in these files.
I will test tomorow with confluence more time.
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.bin, constant disk write at 2.3 MB/s ...0