mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware

Reply
 
Thread Tools
Old 2020-07-26, 23:43   #12
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17×487 Posts
Default

Sigh, now I'm confused.

I prefer the default installation of prime95 leads to trouble-free operation. I don't want to annoy users. Many are unsophisticated and won't know to tweak these settings. I don't need the headache of fielding email complaints about prime95 slowing down their Internet. Some won't bother with email, they just stop running prime95.

OTOH, I don't want to cripple the server.

I had just coded up the default of 0.25Mbps default upload speed.

Each chunk is 1MB in size (bigger if not limiting upload bandwidth). I'm not sure if the TCP connection is kept alive between chunks. If it is, would there be any advantage in creating a new connection with each chunk?

@Mark: Yes, resume upload is supported.
Prime95 is offline   Reply With Quote
Old 2020-07-27, 00:03   #13
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

22×3×112 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Each chunk is 1MB in size (bigger if not limiting upload bandwidth). I'm not sure if the TCP connection is kept alive between chunks. If it is, would there be any advantage in creating a new connection with each chunk?
That may be an idea -- upload each chunk (1MB) fast, and breathe for a few seconds in between chunks, closing the TCP connection during this "rest" interval (which I think is what happens by default, i.e. the connection is not kept alive). (probably this would work better with HTTP vs. HTTPS, where I imagine HTTPS has a more expensive connection establishment).

OTOH on GpuOwl's upload script I'm going to try "connection keep-alive" between chunks to speed up the upload.

Maybe this is the idea: upload all proofs of the day at 3am each night, without throttling.
preda is offline   Reply With Quote
Old 2020-07-27, 00:28   #14
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

254748 Posts
Default

My suggestion is allow the user to designate what their "3 AM" is. If the computer is at a work site that requires machines to be shut down at the end of the day, a hard coded time would be troublesome. Or for people that shutdown laptops, etc.
Uncwilly is offline   Reply With Quote
Old 2020-07-27, 00:50   #15
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

827910 Posts
Default

Quote:
Originally Posted by preda View Post
T
Maybe this is the idea: upload all proofs of the day at 3am each night, without throttling.
I did some quick googling at it looks like Windows Server is supposed to have no troubles with 50,000+ active TCP connections. Aaron would knoe the definitive answer.

There will be an option for time interval prime95 is allowed to do its uploads. The problem with setting this to 2AM to 5AM by default is the user that turns his computer off at night never uploads his proofs.
Prime95 is offline   Reply With Quote
Old 2020-07-27, 02:26   #16
PhilF
 
PhilF's Avatar
 
"6800 descendent"
Feb 2005
Colorado

2EB16 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I did some quick googling at it looks like Windows Server is supposed to have no troubles with 50,000+ active TCP connections. Aaron would knoe the definitive answer.
Tens of thousands of simultaneous open TCP connections aren't really a problem. In my opinion you shouldn't use it as a reason to make decisions concerning software defaults.
PhilF is offline   Reply With Quote
Old 2020-07-28, 04:23   #17
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

Quote:
Originally Posted by preda View Post
That may be an idea -- upload each chunk (1MB) fast, and breathe for a few seconds in between chunks, closing the TCP connection during this "rest" interval (which I think is what happens by default, i.e. the connection is not kept alive). (probably this would work better with HTTP vs. HTTPS, where I imagine HTTPS has a more expensive connection establishment).
There are two potential problems with this. The first is on the client side, where saturating upload is going to delay TCP/ACK and UDP packet. Forget having a VOIP call or doing online gaming. This will quickly lead to Prime95 being removed from networks for having abusive uploading behaviour.

The second comes into play if a load balancer or NAT is used. Each TCP connection requires a unique tuple of source port and IP to differentiate it from other connections. Since strange things can happen, like packet retransmission, there is a time during which TCP tuples cannot be reused, generally one minute. This effectively limits the maximum connection throughput from a load balancer IP to back end service to about 1000 connections/second. The same could also happen on a corporate network behind a NAT gateway, where if uploads were scheduled to happen at one time at night, causing tuple exhaustion between the NAT and PrimeNet. So it's better to make fewer connections per second.

The other concern is resource usage on the server when dealing with thousands of connections. We run many servers that maintain 50k connections at work, all also proxied through Nginx. The TCP buffers even though tuned to be small, still consume gigabytes of memory. So that's the argument for uploading as fast as possible, to reduce memory usage. Any reasonably written HTTP server can handle 50k connections on a single core machine; the c10k problem was solved over a decade ago.


I do think being to pick an upload time as well as a bandwidth limit is ideal. Even better than picking a bandwidth limit, would be implementing CoDel in the app, (since Windows and Mac haven't gotten around to implementing it), a flow control algorithm that monitors round trip latency to avoid saturating buffers, which is the problem George ran into trying to watch Netflix and getting his TCP ACK packets delayed.

Last fiddled with by Mark Rose on 2020-07-28 at 04:24
Mark Rose is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet down question ctteg Information & Answers 2 2018-03-13 17:57
PCI-E USB 3.0 Extension Cable vsuite GPU Computing 7 2017-07-10 20:45
The Expanse has to be the most epic 45 minutes to get a first showing on regular cable. jasong jasong 25 2016-01-21 16:03
best buy 13.99 for 3ft cat-5e cable crash893 Soap Box 5 2012-03-31 02:06
Too Much Internet Access. M0CZY Software 3 2005-10-17 15:41

All times are UTC. The time now is 16:29.


Fri Jul 7 16:29:17 UTC 2023 up 323 days, 13:57, 0 users, load averages: 2.74, 2.25, 1.84

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔