On Wed, Sep 05, 2007 at 12:25:46PM -0700, John Forte wrote:
> Yes, it seems slow to me. I have a CLI application that takes ~6 seconds 
> to add 100 property values, executing the command line for each. That 
> seems excessive. And the other implementation I was referring to is the 
> iSCSI target, which seems to exhibit the same timings.

Can you use one svccfg invocation to update many props in one
transaction?

> I just want to ensure that this is expected so that we can set 
> expectations on our project interface usage. As I said, it seems slow, 
> particularly if a customer was using our interfaces implemented over 
> libscf to initialize even a medium sized configuration.

SMF uses SQLite, which implements ACID transactions.  That will require
at least one full disk revolution per-transaction, most likely more than
just one.  The best way to deal with this is to batch as many updates
into one transaction as you can.

Nico
-- 

Reply via email to