RobinJ wrote:The average CPU usage is 4%, while the average RAM usage is 32MB so I figured it really can't be anything else than the I/O. The problem is mainly noticable when a script needs to run a simple INSERT query into an SQLite database. The script will simply hang for 20 seconds until the query completes, and then continue as if nothing special has happened.
Sounds like the SQLite database is waiting for changes to be flushed to disk before continuing. SQLite has a very robust procedure in place to ensure the database state can survive power failures, etc. Unfortunately it can also make inserts really slow. You can disable this feature of SQLite on a per connection basis. What IRC bot are you running?
Written from scratch. I don't use someone else's code for something I can do better myself :p
Wendo wrote:Class 4's traditionally have better random I/O patterns though, as there is a minimum specified in the class 4 spec, but none specified in the class 10 spec
That's what I thought...
My SD card died a few days ago. I put a small microSD into a microSD-SD adapter, and it worked fine all of a sudden.
<RaspberryDroid> 18:59:07 up 1 day, 20:34, 0 users, load average: 0.00, 0.01, 0.05
These load averages look a lot better, don't they? Appart from the SD card, the only difference is that I'm running Raspbian now in stead of Arch Linux (I couldn't be bothered doing the whole Arch setup again, while Debian is so much easier).