Jump to content
The Dark Mod Forums

Download hosting


Dimand

Recommended Posts

Hi everyone.

 

Just downloading this again for a bit of a play and one thing that is bugging the hell out of me is, DAM this download server is slow.

The fact that we can only grab a file at a time probably doesn't help, possibly you could edit the downloader to grab multiple files of multiple hosts?

 

Anyway, I have a server that has minimal use throughout most of the year. It gets traffic about twice a semester when i run a game of assassins at the uni. Would you like me to mirror up a copy of the mod, I'm not promising blazing fast speeds but the more the merrier hey?

Link to comment
Share on other sites

the updater downloads a zipped file of all the updated files then patches the old files with the files in that zip, it only downloads one file.

 

Well I'm downloading from scratch and believe me, it is downloading each file individually.

 

Checking download for 'is-a-zipfile'.
Checking CRC of downloaded file, expecting 4a0a662b
CRC calculated for zip file C:\Program Files\Doom 3\darkmod\__tdm_textures_stone_brick01.pk4 = 4a0a662b
Downloaded file passed the integrity checks.
Moved C:\Program Files\Doom 3\darkmod\__tdm_textures_stone_brick01.pk4 to C:\Program Files\Doom 3\darkmod\tdm_textures_stone_brick01.pk4
Downloading to temporary file C:/Program Files/Doom 3/darkmod/__tdm_textures_stone_cobblestones01.pk4
Initiating Download from http://thedarkmod.robertrueger.de/tdm_textures_stone_cobblestones01.pk4
Download successful: http://thedarkmod.robertrueger.de/tdm_textures_stone_cobblestones01.pk4
Checking filesize of downloaded file, expecting 85089416
Checking download for 'is-a-zipfile'.
Checking CRC of downloaded file, expecting f9c7862f
CRC calculated for zip file C:\Program Files\Doom 3\darkmod\__tdm_textures_stone_cobblestones01.pk4 = f9c7862f
Downloaded file passed the integrity checks.
Moved C:\Program Files\Doom 3\darkmod\__tdm_textures_stone_cobblestones01.pk4 to C:\Program Files\Doom 3\darkmod\tdm_textures_stone_cobblestones01.pk4
Downloading to temporary file C:/Program Files/Doom 3/darkmod/__tdm_textures_stone_flat01.pk4
Initiating Download from http://www.southquarter.com/tdm/tdm_textures_stone_flat01.pk4

 

Perhaps when it is just updating something it grabs a compressed file. It's not an issue, only my connection means i could be downloading about 7 files at once with the upload speed of these servers.

 

It is far from a big issue, I'm just not use to having to wait over three hours to get 2GB :P

Link to comment
Share on other sites

Hey there, there are many reasons for doing it the way we currently do - while we understand that using concurrency would speed it up, it's more of a matter of looking after our servers and making sure there's a shared quality of service. That said, if it was under 200k/s or something, then I think it's worth looking into. I know that one of our major ISP's in South Africa limit http threads to 50k/s, so single threaded downloads can be extremely annoying on a good connection.

 

So, can you remember any speed? do you remember which server it was pulling from?

 

As for additional servers, I think we're ok for now, I should be adding two new rather quick mirrors (Germany and Australia) in the next few days, just need to configure and test some stuff. Maybe we can look at relegating some of the slower/high load ones to try keep things quick :)

Link to comment
Share on other sites

From a simplicity of programming point of view I understand entirely why only one file is requested at a time.

 

 

From memory my speed was around 150-250 kBytes/sec depending on which server the file was grabbed from. the updater seems to select a random (or possibly based on server load) server to get the file on, I wasn't watching which servers were faster than others.

 

I'm in aus (not that proximity makes a large difference for this), so news of a faster server is good. I'm curious as to how the updater picks the download server for each file as some files are much larger. You don't want to get stuck with the 50kb/s server with one of the larger files :P.

 

 

As a side point, excellent mode and in all reality, this is not a huge issue. I still remember the days of a shared dial up line where obtaining something like this would be literally impossible, this is a dream compared to that.

Link to comment
Share on other sites

I'm in aus (not that proximity makes a large difference for this), so news of a faster server is good. I'm curious as to how the updater picks the download server for each file as some files are much larger. You don't want to get stuck with the 50kb/s server with one of the larger files :P.

Well, it's very simple - as most of the updater is meant to be as simple as possible and not rely on fancy yet over complex stuff. Even the differential zip handling is very elegant in the way it works (and compared to commercial patching methods, far less problematic!). The server choice is essentially a weighted random chance, each server that the downloader knows about is allocated a probability of being selected, something like : P(use_server x) = 0.3; this server would then have a 30% chance of being used for your download, the download client doesn't actually know anything of the location/speed or load of the server.

 

As you know, this isn't always optimal for people downloading, however it means that just about any host can be added and it's simple enough to not run into a lot of problems. The largest reason for this method using used is that while speed is important, a lot of shared/vps hosting is limited on IO/s from disk as well as web-server worker threads, since we can weight the probability, it stops any logic from overloading a weak server, hopefully.

 

If only there were some nice cheap dedicated sales on with gbit egress, 100mbit is really feeling quite old now ;/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...