FS#2361 - pacman is too cpu-bound
Attached to Project:
Arch Linux
Opened by Eugenia Loli-Queru (Eugenia) - Saturday, 12 March 2005, 23:30 GMT
Opened by Eugenia Loli-Queru (Eugenia) - Saturday, 12 March 2005, 23:30 GMT
|
Details
Whenever I run pacman, the rest of the system comes to its
knees. It would take up to 40 seconds to load gcalctool if
it happens pacman to do stuff in the background, for
example. It sucks in all the cpu available! And this on my
2.8 GHz laptop and on my other laptop.
RPM or DEBs or Apple's or Microsoft's update tools are not that cpu-bound and don't slow down the rest of the system as much. I would appreciate it if some profiling is to take place. |
This task depends upon
Use SQLite3. This way these kinds of searches would be done almost instantly. Flat files are a bad idea so no matter if you use ext3 or ext666, in a few years you will still hit the same problem. The idea should be to fix the problem in its root, not to try to extend the life a problematic design.
We have some options here:
- use sqlite as you suggested, but I'm not familiar with the API of it
- use Berkeley DB instead, I know a little bit of DB programming, documentation is good
- use a flat file and search through it, apt-get does this too
For performance, I would go for 1 or 2. To avoid weird external dependencies, we should go for 3, or do it like the ximian guys do with evolution-data-server: compile it in static. This also solves the DB API change problem whenever we get a new DB and require users to run db_upgrade on their pacman DB.
In any case, I would avoid flat files or xml...
Rest assured, it's a known issue though.