I'm not seeing great performance when copying jobs (via the "Type =
Copy" in the Job definition) from disk to my LTO-6 tape drive.  I've
verified with dd (dd bs=63k if=<backup file> of=/dev/nsa0) that I can
copy a Bareos backup file off of disk to the tape drive at a sustained
160 MB/s.

This is on FreeBSD 10.2. And the machine is dedicated to Bareos, nothing
else is consuming resources.

But Bareos peaks at around 130 MB/s.  I'm not interleaving my backups on
disk anymore, which improved performance. (Thanks Joerg for that advice!)

I've verified with top that I'm resource bound by CPU or memory.
bareos-sd uses about 40% of the CPU.  I do notice, perhaps at the end of
each file written to tape, that postgres uses some CPU and disk
bandwidth, probably to update the catalog. But again, postgres is not
CPU bound. And during the times where Bareos is writing to tape,
postgres is entirely idle.

Nor do I seem to be bound by disk performance. (Disk sub-system is 12
HGST 8 TB SAS system using ZFS, configured as two 6 disk raidz2
volumes.) I'm able to off of the filesystem at 700 MB/s.

I've got a fairly straight forward Copy job:

job {
  name = "offsite-copy"
  job defs = "offsite-copy"
}

job defs {
  name = "offsite-copy"
  type = copy
  level = full
  pool = "full"
  next pool = "offsite"
  messages = "standard"
  selection type = pool uncopied jobs
}

The Device configuration for the tape drive is:
device {
  name = lto6-1
  archive device = /dev/nsa0
  media type = "lto-6"
  drive index = 0
  drive crypto enabled = no
  bsf at eom = yes
  hardware end of medium = no
  two eof = yes
  autochanger = yes
  # smartctl opens /dev/xpt0, so it needs to run as root
  alert command = "/usr/local/bin/sudo /usr/local/sbin/smartctl
--device=scsi --health --log=error %a"
  maximum file size = 20GB
  maximum spool size = 512GB
  spool directory = /local-project/tmp/bareos/spool
}

The problem seems to be limited to Copy jobs. I just did a full backup
to tape, through a staging file, and to tape the backup was streamed at
160 MB/s.

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to