NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD disk performance on VirtualBox



I'd be also interested in your setup - on a W10 hosted VBox (latest) on a fast M.2 disk I get approximately 5 times slower values, on -current amd64, having disks attached to SATA, SAS and NVMe controllers (almost the same, the SAS one is a little slower than the rest, but nowhere near your figures. :
----
➜  xci df -k
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/wd0a      11181622    9494768    1127774  89% /      <-------- SATA
kernfs                1          1          0 100% /kern
ptyfs                 1          1          0 100% /dev/pts
procfs                4          4          0 100% /proc
tmpfs            786316          0     786316   0% /var/shm
/dev/sd0e      16515150   10366632    5322762  66% /usr/pkgsrc
/dev/ld0a      16515182   11712358    3977066  74% /usr/pkg
/dev/sd1a      33030380   29489804    1889058  93% /home/sysbuild
➜  xci dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 11.497 secs (91204314 bytes/sec)
➜  xci cd /usr/pkg
➜  pkg dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 11.303 secs (92769707 bytes/sec)
➜  pkg cd /usr/pkgsrc
➜  pkgsrc dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 11.854 secs (88457567 bytes/sec)
➜  pkgsrc cd /home/sysbuild
➜  sysbuild dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 11.776 secs (89043478 bytes/sec)
-----------
 
Chavdar Ivanov

On Mon, 19 Mar 2018 at 08:33 Martin Husemann <martin%duskware.de@localhost> wrote:
On Sun, Mar 18, 2018 at 03:45:48PM +0000, Sad Clouds wrote:
> Hello, using 'log' or both 'async, log' does not improve things much,
> i.e. it's around 30-50 MBytes/sec:
>
> localhost# mount | grep wd0a
> /dev/wd0a on / type ffs (asynchronous, log, local)
>
> localhost# dd if=/dev/zero of=out bs=1m count=1000
> 1000+0 records in
> 1000+0 records out
> 1048576000 bytes transferred in 21.330 secs (49159681 bytes/sec)

I get:

amd64-test# mount
/dev/wd0a on / type ffs (local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
tmpfs on /var/shm type tmpfs (local)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 2.634 secs (398092634 bytes/sec)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 2.634 secs (398092634 bytes/sec)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 2.691 secs (389660349 bytes/sec)
amd64-test# mount -u -o async /
amd64-test# mount
/dev/wd0a on / type ffs (asynchronous, local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
tmpfs on /var/shm type tmpfs (local)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 0.755 secs (1388842384 bytes/sec)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 0.765 secs (1370687581 bytes/sec)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 0.756 secs (1387005291 bytes/sec)
amd64-test# mount -u -o noasync /
amd64-test# mount -u -o log /
amd64-test# mount
/dev/wd0a on / type ffs (log, local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
tmpfs on /var/shm type tmpfs (local)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 2.787 secs (376238249 bytes/sec)
amd64-test# dd if=/dev/zero of=out bs=1m count=1000
1000+0 records in
1000+0 records out
1048576000 bytes transferred in 2.714 secs (386358142 bytes/sec)


.. and this is close to what I expected (in relative timings).

Martin


Home | Main Index | Thread Index | Old Index