Archive for the 'General' Category
Modifications to pkg_install — the positive and (slightly) negative implications
0 Comments Published July 14th, 2007 in General, pkg_* tools revisionsCommentary:
What’s being profiled:
In my simple profiling Perl scripts I count the number of iterations I see a given header tag, along with count the time reported by clock_gettime(3). I’ve placed simple printf’s around the following subroutines/sections of code, as I believe they are critical (high number of iterations, large amount of disk access time) pkg_install [...]
Continuing on with my analysis of the Ruby tools, I find that pkgdb.db is really inefficiently mapping files to packages, and packages to origins.
In the given pkgdb.db I have (which is toy in comparison to my server and other desktops’ pkgdb.db files—only 25 installed packages), I am seeing the following pattern (this is completely random [...]
Seizing the opportunity of having more free time from my internship, I’ve been able to unravel a bit more behind INDEX-*.db’s format.
Based on the information dumped from MySQL 5.0.x’s db_dump185 source, I can see that the Ruby generated the following formatted database:
:categories{Categories}
:db_version
[db specific version string]
:origins
{Package name
Package origin}
:pkgnames
{Package name
Package origin}
:virtual categories
{
{?Virtual Category Name
{complete Virtual Category Package [...]
/usr/lib/libc/db/ and friends, and INDEX’es
0 Comments Published May 6th, 2007 in General, pkg_* tools revisionsSo, over the past couple days I’ve been looking over the db code under libc, trying to get a grasp on what needs to be done to get the packaging stuff up and running, and it turns out that my results have been fairly successful. In order to remain fully compatible with the ruby packaging [...]
So, this is my first post to my FreeBSD blog. In here I’ll discuss my triumphs, tribulations, and the entire learning process of my SoC 2007 project, of which it’s comprised of several mini-projects:
Revise FreeBSD’s package tools (pkg_*) to use a BDB hash table backend.
Write a common Bourne shell frontend for all pkg_* tools to [...]
Search
About
You are currently browsing the FreeBSD ala Folsom weblog archives for the 'General' category.
Longer entries are truncated. Click the headline of an entry to read it in its entirety.Latest
Archives
Categories
- General (5)
- pkg_* tools revisions (2)
- Uncategorized (1)
