Hi,
I have already asked about this few months back:
http://mail.opensolaris.org/pipermail/pkg-discuss/2008-March/002217.html

There is an script which shows how the description are taken from the manifest file. To get GUI up and running we need to have descriptions for *all* packages, so currently this is quite long task, more then that this is even longer if the manifests are not in the local catalog.

The acceptable time for such option would be less then 1 seconds which is far from what is now. Currently each time user starts GUI the number of opened manifest files is the number of all packages, just to get description, that is why I think (I might be wrong) that caching this kind of information will give huge performance improvement.

If you have any other suggestions I would be very happy to go other then caching way.

The bug 243 should cover this as Danek wrote in that thread:
http://defect.opensolaris.org/bz/show_bug.cgi?id=243

I am attaching dtrace script which shows opened and written files (O/W) running this script together with the script attached in the e-mail from March would give information how much files needs to be opened and how slow is getting description information.

./print_changes.d /path/to/the/ips/catalog

best
Michal Pryc

[EMAIL PROTECTED] wrote:
It seems as though you're putting the cart before the horse.  The
performance of manifest operations may not be optimal; however, until we
evaluate those problems it's premature to conclude that caching is the
solution.

Have you filed a bug for the performance problems that you're seeing?
It should include information about how you're accessing the manifests,
what operations you're performing, and what performance results you're
seeing.  Provide as many details as you can.

Thanks,

-j

On Wed, Jun 04, 2008 at 10:05:01AM +0100, Michal Pryc wrote:
Hello,
I am currently looking on the improving performance of the GUI for IPS (packagemanager) and I would really happy if someone could give me information about plans for caching manifest files in the IPS.

The biggest bottleneck is to get information from manifest files for all packages (for example description) and I am looking forward to hear if we should implement something in the GUI or this will be part of the IPS.

all the best
Michal Pryc

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

#!/usr/sbin/dtrace -s
#pragma D option quiet
/*
 * This script check for the changes and prints them
 * to use with the backup.sh script
 * dtrace -s print_changes.d -o output
 * and than run backup.sh /directory/for/backup
 */

syscall::open*:return
/ strstr(fds[arg1].fi_pathname, $$1 ) != NULL && arg1 >=0 /
{
        printf("O %s\n", stringof(fds[arg1].fi_pathname));

}

fbt::fop_remove:entry
/ strstr(stringof(args[0]->v_path), $$1 ) != NULL /
{
        self->dir = stringof(args[0]->v_path);
        self->file = stringof(args[1]);
}

fbt::fop_remove:return
/ self->file != NULL /
{
        printf("U %s/%s\n", self->dir, self->file);
        self->file = 0;
        self->dir = 0;
}

syscall::write*:entry
/ (self->str = strstr(fds[arg0].fi_pathname, $$1 )) != NULL /
{
}

syscall::write*:return
/ self->str != NULL /
{
        printf("W %s\n", self->str);
        self->str = 0;
}
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to