Archive for the 'General' Category



Commentary:

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 [...]

Add to del.icio.us - Digg this article

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 [...]

Add to del.icio.us - Digg this article

Behind INDEX-*.db

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 [...]

Add to del.icio.us - Digg this article

So, 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 [...]

Add to del.icio.us - Digg this article

First Post

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 [...]

Add to del.icio.us - Digg this article



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.