animetosho / Nyuu

Flexible usenet binary posting tool
215 stars 30 forks source link

Speeds and connections #129

Open dystopia2017 opened 3 months ago

dystopia2017 commented 3 months ago

Hello, I have a 1gbit up/down connection but when uploading to usenet I only seem to get 3mbps to 9mbps up. I am using 12 connections and have tried adjusting this a bit and it doesn't seem to change anything. Is there a reccomended ammount of connections I should use? are my speeds problems because of Tweaknews? When I download from usenet/Tweaknews I do manage to saturate my conneciton and get 100mb/s down.

%apps%\nyuu.exe -h %serv% --ssl -u %user% -p %pass% -f %from% -g %grps% %suba% "%dirn% %subb%" -n 12 -o "%nzbd%\%dirn%.nzb" "%outd%\%dirn%"

here is an example upload line. Kind Regards -d

animetosho commented 3 months ago

Are you using Node 20? If so, see #128

Otherwise you'll need to provide more info, e.g. what platform, what build, observable system metrics (e.g. CPU and I/O usage) etc.

duhagppn commented 3 months ago

It's also worth noting that with tweaknews their speed cap is also applied to posting and not just downloading. So if you're trying to post via Fast, Lightning, or any of their block offerings you'll be limited to 50Mbit (Fast) or 100Mbit (Lightning / blocks)

dystopia2017 commented 3 months ago

I tried to downgrade Node.js as mentioned in #128 but it makes no difference. If it's my provider I will switch, but I don't want to switch if that is not the issue.

My versions are "Node.js v18.20.1" and "Nyuu v0.4.2" I ran a speedtest and it reports 935.13Mbps Down and 875.01Mbps Up. On tweaknews I have an unlimited account is says "Bandwidth: unlimited" and "Threads: 60" My uploading script is currently this:

@echo off
:SetupVariables
set idir=T:\Skeen\Scripts\___WiP___\Usenet_Regular_20230728
set outd=S:\_Work_\_Posting_
set pstd=S:\_Work_\_Posted_
set nzbd=T:\Skeen\Scripts\___WiP___\Usenet_Regular_20230728\_Toolset_\_Nzbs_
set apps=T:\Skeen\Scripts\_Apps_
set serv=news.tweaknews.eu
set user="REMOVED"
set pass="REMOVED"
set from="REMOVED"
set grps=REMOVED
set suba=-F --subject
set subb=- {filename} yEnc ({part}/{parts})
set dirn=REMOVED
set nyuu=T:\Skeen\Scripts\_Apps_\nyuu-v0.4.1-win32\nyuu.cmd
:Post_REMOVED
%outd:~0,2%
cd %outd%\%dirn%
dir /b *.jpg>>%temp%\jdir.txt
< %temp%\jdir.txt (set /p "tjpg=")
if exist %temp%\jdir.txt (erase /q %temp%\jdir.txt)
copy %tjpg% %nzbd%\%dirn%.jpg
%nzbd:~0,2%
%apps%\nyuu.exe -h %serv% --ssl -u %user% -p %pass% -f %from% -g %grps% %suba% "%dirn% %subb%" -n 12 -o "%nzbd%\%dirn%.nzb" "%outd%\%dirn%"
move "%outd%\%dirn%" %pstd%\

slow

dystopia2017 commented 3 months ago

After that post finnished I redownloaded it from the nzb, and it downloaded at around 50mb/s dl

animetosho commented 3 months ago

You can try adding --progress http:127.0.0.1:8080 --progress stderr to your command, then whilst it's uploading, visit http://127.0.0.1:8080/ in your web browser, which will provide slightly more info.

You can also try posting with a different uploader, which should give you an indication if the issue is solely related to Nyuu.

Of course, if you do have access to a different provider or server, you can test with that as well to give you more insight.