Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Every time I boot Dropbox thrashes my disk for 10 minutes while the system is almost completely unresponsive.

I seriously doubt that any usermode program could overwhelm the OS scheduler like that. What are your use case parameters?



> I seriously doubt that any usermode program could overwhelm the OS scheduler like that. What are your use case parameters?

The OS IO scheduler is known to be shitty. That's not an exegeration. You can start swapping because the scheduler does not free unused caches fast enough.


Just after the OS boots, Dropbox needs to index 120 GB of files. Any other program that wants to access the disk takes forever. For Dropbox to finish, for my mail and IDEs to open takes about 10 minutes. Any other program that needs the disk is uselessly slow.


Interesting. How many files do you have? I recorded a trace of dropbox executing on my windows machine (mostly flat folder hierarchy, ~500MiB , ~1000 files) and the file I/O for querying all my data took 71542.070μs (0.07s). I believe dropbox also does some extra things (reading the NTFS journal, its own file cache-journal, updating hashes, etc ) and so the total File I/O cost was around 2944815.431μs (2.9s). Note that the I/O happened sporadically, and the wall clock time is higher as expected (it didn't block the scheduler from scheduling other processes).

I assume since my data was synced and didn't need to be indexed all over again - I got some savings there. Maybe your dropbox configuration data is corrupted and thats why it needs to index it all again.


How do you record a trace? That would be interesting to do.


Windows Performance Recorder.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: