>>>>> On Mon, 31 Oct 2011 08:00:46 -0400, Phil Stracchino said:
> 
> ... but bscan performance is horribly, horribly slow.  After dropping
> and recreating the DB, bscan has been running for 16 hours and reports
> it is 2% complete on scanning a 640GB Full backup volume that contains 5
> Jobs.  Latest report:
> 
> bscan: bscan.c:705 229,376 file records. At file:blk=3:1,326,962,185
> bytes=14,203,879,414
> 
> At this rate it's going to take it a month and a half (literally) to
> scan this one volume.  Both iostat and vmstat report the system is
> sitting almost totally idle, with typically 97% CPU idle, 2% system.
> mysql and bscan *together* are occasionally approaching 1% combined CPU
> usage.  bscan has used 2 minutes 50 seconds of CPU during the 16 hours
> it's been running.  System load average is 0.13.  I've reniced both
> bscan and mysql to the highest possible priority and bscan is still just
> loafing along.  DB activity is almost nonexistent, DB performance is
> pretty much optimal; it seems to be only bscan itself that's holding
> things up.
> 
> bscan was invoked as follows:
> 
> /opt/bacula/sbin/bscan -c /opt/bacula/etc/sd.conf -vSsm -n bacula -u
> bacula -D mysql -P MYSQL-PASSWORD -V FULL-20110905-04:30 /spool/bacula
> 
> This is unfortunately a 32-bit Bacula build because I can't seem to
> figure out how to get a clean 64-bit build of Bacula on Solaris 10.
> 
> 
> Now, I haven't previously used bscan in years, let alone on a volume
> this size.  So I don't have a 5.0.3 baseline to compare to.  Still, I
> have a hard time believing this is normal.
> 
> Am I missing something?  Surely this can't be the expected bscan
> performance, can it...?  Or does compiling for 32-bit really hobble
> bscan this badly?

I think the 32-bit issue is very unlikely to be the cause of it.

Can you find out what bscan is waiting for, e.g. using truss or by attaching
gdb periodically and using 'thread apply all where' to see if there is a
pattern.

You could also compare the speed without the -s and -m options to see if the
database update is the slow part.

__Martin

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to