A
Anonymous
Guest
Hi,
I started a dump|restore of apprx. 2.0 GB of data from the /usr-UFS-partition of an un-mounted secondary SATA-HD to a 2.6 GB /usr-UFS-partition of an USB Memory Stick. It is running more than 24 h now.
Before this, using the same procedure, I did dump|restore of 177 MB from the /-partition and of 62 MB from the /var-partition from the same HD to the respective partitions of the same USB Memory Stick, and in these cases the tranfer rates were reasonably fast:
Here come the sizes of the HD to be backed-up as reported by df -h once it was mounted.
Here comes the partition info of the USB memory stick as reported by gpart show da0s1:
The respective command sequences were:
backing up / (177 MB):
DUMP: finished in 154 seconds, throughput 1166 KBytes/sec
backing up /var (62 MB):
DUMP: finished in 40 seconds, throughput 1593 KBytes/sec
backing up /usr (2048 MB):
But this one told after 24 h:
DUMP: 92.31% done, finished in 1:54 at Sun Nov 21 20:43:06 2010
=> throughput 0.9231*2048*1024/24/3600 = 22.4 KBytes/sec
After more than 24 h the reported CPU time is quite low:
So, why is backing up of /usr so terribly slow. What did I wrong, hence what can I do to get /usr backed-up at a reasonable rate in a reasonable time. I had the same problem already in the past, when backing up the primary internal H to a secondary internal HD.
Many thanks for any suggestions.
Best regards
Rolf
I started a dump|restore of apprx. 2.0 GB of data from the /usr-UFS-partition of an un-mounted secondary SATA-HD to a 2.6 GB /usr-UFS-partition of an USB Memory Stick. It is running more than 24 h now.
Before this, using the same procedure, I did dump|restore of 177 MB from the /-partition and of 62 MB from the /var-partition from the same HD to the respective partitions of the same USB Memory Stick, and in these cases the tranfer rates were reasonably fast:
Here come the sizes of the HD to be backed-up as reported by df -h once it was mounted.
Code:
Filesystem Size Used Avail Capacity Mounted on
/dev/ad6s1a 496M 177M 279M 39% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad6s1e 496M 14K 456M 0% /tmp
/dev/ad6s1f 573G 2.0G 525G 0% /usr
/dev/ad6s1d 1.9G 62M 1.7G 3% /var
Here comes the partition info of the USB memory stick as reported by gpart show da0s1:
Code:
=> 0 7831467 da0s1 BSD (3.7G)
0 393216 1 freebsd-ufs (192M)
393216 1572864 2 freebsd-swap (768M)
1966080 196608 4 freebsd-ufs (96M)
2162688 196608 5 freebsd-ufs (96M)
2359296 5472171 6 freebsd-ufs (2.6G)
The respective command sequences were:
backing up / (177 MB):
Code:
mount /dev/da0s1a /mnt; cd /mnt
dump -0af - /dev/ad6s1a | restore -rf -
cd ..; umount /mnt
backing up /var (62 MB):
Code:
mount /dev/da0s1d /mnt; cd /mnt
dump -0af - /dev/ad6s1d | restore -rf -
cd ..; umount /mnt
backing up /usr (2048 MB):
Code:
mount /dev/da0s1f /mnt; cd /mnt
dump -0af - /dev/ad6s1f | restore -rf -
cd ..; umount /mnt
DUMP: 92.31% done, finished in 1:54 at Sun Nov 21 20:43:06 2010
=> throughput 0.9231*2048*1024/24/3600 = 22.4 KBytes/sec
After more than 24 h the reported CPU time is quite low:
Code:
root 1258 1207 1258 1207 2 I+ 0 0:00.41 dump -0af - /dev/ad6s1f (dump)
root 1262 1258 1258 1207 2 S+ 0 0:17.56 dump: /dev/ad6s1f: pass 4: 94.29% done, finished in 1:29 at Sun Nov 21 22:01:35 2010 (dump)
root 1263 1262 1258 1207 2 S+ 0 0:10.39 dump -0af - /dev/ad6s1f (dump)
root 1264 1262 1258 1207 2 S+ 0 0:10.40 dump -0af - /dev/ad6s1f (dump)
root 1265 1262 1258 1207 2 S+ 0 0:10.40 dump -0af - /dev/ad6s1f (dump)
root 1259 1207 1258 1207 2 D+ 0 1:22.52 restore rf -
So, why is backing up of /usr so terribly slow. What did I wrong, hence what can I do to get /usr backed-up at a reasonable rate in a reasonable time. I had the same problem already in the past, when backing up the primary internal H to a secondary internal HD.
Many thanks for any suggestions.
Best regards
Rolf