LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-17-2014, 07:13 AM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
apt-get update and gpg key downloading inside VM taking an obscenely long time


I wrote a very simple script to update the system, download the deb-multimedia key and tor key, and then download a few gpg keys for an old repo (the repo is no longer around, but the keys were just meant to test this script's ability to download and add them).

Script is here
Please ignore the last bits regarding key 886DDD89, I found, only after starting this, that key no longer existed on the server.
When run on my native system, it completes in a reasonable time with no problem. You can see the results from my native system here.
And the vm results here.

Both systems are running debian 7.5 wheezy. The networking on the vm in question is setup as a bridged adapter. Any help would be appreciated, thanks!
 
Old 06-17-2014, 04:20 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
How much memory did you allocate to the VM?
 
Old 06-18-2014, 12:03 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by EDDY1 View Post
How much memory did you allocate to the VM?
About 750Mb I believe. The issue isn't the vm running slowly, it's the downloading that is slow. I can run plenty of other things without any hiccup in performance, it's just download speeds in the vm are so low that it results in "server timeout"errors.
 
Old 06-18-2014, 09:44 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
it's just download speeds in the vm are so low that it results in "server timeout"errors.
& you don't believe that it may be due to lack of virtual memory?
 
Old 06-19-2014, 04:19 PM   #5
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
The reason I don't believe it is due to virtual memory level is because the VM runs fine otherwise. Any other command, tool, or whathaveyou runs as expected. It's just downloading with wget or apt-get update takes a long while, not in the sense that it takes ages to complete, but that the connection takes ages to go through. It doesn't seem like it'd be a memory issue.

I have run debian on physical systems with 256MB ram, and a 10/100 network card that was able to download no problem. This is running with 750MB and the equivalent of 10/100/1000 network card, so it shouldn't be experiencing these problems.

Last edited by slacker_; 06-19-2014 at 04:21 PM.
 
Old 06-19-2014, 05:00 PM   #6
S_M_A
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled
Maybe you use a very slow (or loaded) server? Have you tested what speed you get?
Here's one way http://lifehacker.com/how-to-test-yo...and-1364123567
 
Old 06-19-2014, 06:34 PM   #7
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Tried that wget test with the 100MB file, on both the vm and the physical computer (host?), and got a consistent 2.4Mb/s. Then just to add a comparison I ran apt-get update on the vm (which has only default sources setup), then I decided to do the same on the host computer (which has a lot of addition repos with the default in the sources). Results:

debian vm results from apt-get update
Code:
Fetched 125 kB in 2min 6s (981 B/s)
debian laptop results from apt-get update
Code:
Fetched 301 kB in 26s (11.2 kB/s)
They both accessed the debian servers at ftp.debian.org. So... I'm not sure where this leaves me.
 
Old 06-20-2014, 06:07 PM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Thanks for that connection speed info.

Can't help you on vertual environments and connections, hope you get it going.

You have helped me. Folks tell me I have a slow connection. Never seems that way to me. We ran on dial up with 4.6 kB/sec on a great day for a long time. Moved and have dsl now and it may be slow but it is blazing in comparison. Is compared to yours too. 300kB/sec +/- 30kB.

I could live with your 11. That less than 1 truly does suck.
 
Old 06-21-2014, 01:31 AM   #9
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by widget View Post
Thanks for that connection speed info.

Can't help you on vertual environments and connections, hope you get it going.

You have helped me. Folks tell me I have a slow connection. Never seems that way to me. We ran on dial up with 4.6 kB/sec on a great day for a long time. Moved and have dsl now and it may be slow but it is blazing in comparison. Is compared to yours too. 300kB/sec +/- 30kB.

I could live with your 11. That less than 1 truly does suck.
My average download speed for day to day things is around 9-11Mb/s. I'm not sure why that shows the way it is, perhaps because it's only a few hundred kB so it didn't have time to get up to full speed? I was reading an article about it somewhere else today how smaller packages will download at a slower speed compared to larger ones, but that doesn't mean a small package will take longer.
 
  


Reply

Tags
debian, virtual machine, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-key gpg error Free Thinker Linux - Newbie 1 09-04-2015 02:37 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
can see gpg key in apt-key, still can't update Dan63043 Ubuntu 2 09-25-2006 11:35 AM
Seriously this is taking a long time!! Omega Linux - Newbie 13 04-25-2003 05:46 AM
programs taking a long time to load... sas Linux - Software 2 01-08-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration