question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import from a virtual disk in an external SSD is slow at roughly 5-9MBps inside a VM.

See original GitHub issue

Observed behavior

Inside an Ubuntu 16.04.6 VM - Importing channel content (Khan Academy English about 19GB) from a local virtual disk is slow at roughly 5-9MBps whereas copying a folder of the same size yields >100MBps inside the same VM.

This local disk is a “virtual disk” that is saved in an external Seagate Fast SSD 500GB that’s supposed to have 540MBps read/write theoretical speeds. It’s connected via my USB Type-C to get the best performance.

Progress so far:

  • 35 minutes = 30%
  • 50 minutes = 37%
  • 55 minutes = 40%

At this rate, it’ll take about 135+ minutes to finish importing the 19GB of channel content.

Is this normal behaviour or is there a bottleneck somewhere when importing in Kolibri?

Here’s the .gif of the Ubuntu VM with iotop while importing kolibri--import content from external ssd 3

Here’s the .gif of the Ubuntu VM with iotop while copying the folder inside the same VM kolibri--import content from external ssd 5

Expected behavior

I expected a faster than 9MBps read/write speed when importing content from the local virtual disk (saved in an external SSD) even when inside an Ubuntu VM.

Context

  • Kolibri version: v0.13.2-beta1
  • Operating system: Ubuntu 16.04.6 inside VMWare Fusion on a macOS Mojave 10.14.6
  • Virtual RAM: 8GB
  • Virtual Processors: 2
  • Shared Graphics Memory: 768MB (as recommended by VMWare)
  • Browser: Firefox v74.0

Related Issue/s:

This seems related to this issue Khan Academy (English) Import Metrics.

Note/s

  • I just used the results from iotop for the 5-9MBps speed. I have no other means (yet) to determine why the import process is slower than I expected. 😸

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rtibblescommented, Mar 31, 2020

It’s related, but a little different - seems like we should be coercing the total value to an int as well. Could you open a separate issue for this error, as I don’t think we should release with it.

1reaction
rtibblescommented, Mar 31, 2020

In this case, you can just skip to the second step, if the database is already there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows VM extreamly slow when running from external ...
Long Info: I'm trying to run a windows virtualbox vmdk from a USB 3.0 external SSD. The system I use is Arch Linux...
Read more >
How to Fix Slow Write Speeds on External SSD in Windows 10
Look down here for more stuff!In this video I demonstrate how to fix slow write speeds on an external SSD by enabling write...
Read more >
Extreamly Slow disk inside VM, Host disk speed is fine.
We have been troubleshooting since then when all of a sudden the remaining two VM's dropped disk speed yesterday from supper fast to...
Read more >
How to Create or Import Virtual Machines using Hyper-V ...
The best place to start is by creating a virtual machine. ... If you chose to create a new virtual hard disk, the...
Read more >
Running VM on external SSD or HDD - VMware Communities
Is it a normal HDD with a thunderbolt connection or a SSD external hard drive with a USB 3.0 connection. Which one is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found