download tuned for low MTU values, needs investigation

This commit is contained in:
voidlizard 2024-10-18 10:27:28 +03:00
parent 6eb63e9cce
commit 954b2266ab
2 changed files with 5 additions and 5 deletions

View File

@ -16,11 +16,11 @@ defBurstMax :: Integral a => a
defBurstMax = 128 defBurstMax = 128
defBurst :: Integral a => a defBurst :: Integral a => a
defBurst = defBurstMax `div` 8 defBurst = defBurstMax `div` 4
-- defChunkSize :: Integer -- defChunkSize :: Integer
defChunkSize :: Integral a => a defChunkSize :: Integral a => a
defChunkSize = 1400 defChunkSize = 1024
-- defChunkSize = 480 -- defChunkSize = 480
defBlockSize :: Integer defBlockSize :: Integer
@ -36,7 +36,7 @@ defBlockDownloadQ :: Integral a => a
defBlockDownloadQ = 65536*10 defBlockDownloadQ = 65536*10
defBlockDownloadThreshold :: Integral a => a defBlockDownloadThreshold :: Integral a => a
defBlockDownloadThreshold = 2 defBlockDownloadThreshold = 1
-- typical block hash 530+ chunks * parallel wip blocks amount -- typical block hash 530+ chunks * parallel wip blocks amount
defProtoPipelineSize :: Int defProtoPipelineSize :: Int

View File

@ -665,8 +665,8 @@ blockDownloadLoop env0 = do
updateRates e rates nonces = withPeerM e do updateRates e rates nonces = withPeerM e do
let wRtt = 5 let wRtt = 5
let wUdp = 1.75 let wUdp = 1.5
let wTcp = 1.0 let wTcp = 1.1
let wS = 1.5 let wS = 1.5
let eps = 1e-8 let eps = 1e-8