« first day (3463 days earlier)      last day (1471 days later) » 

6:06 PM
a rebuild all should suffice in fetching the required libs
you need to substitute your own ipaddress in the Program.cs file
near the top
line 26
imma have to be afk for a bit
sorry
@mr5
 
mr5
6:33 PM
> [Client 1, Packet 0] Sent 4096 bytes to 127.0.0.1:80
[Client 1, Packet 0] >>>> Hello World! (Packet 0)
@MikołajLenczewski now what
it's just non stop console logs. I need to pause it manually
I can't see the same output you're doing
 
6:58 PM
so
if you run it in release mode, it will not log to console
in debug mode it logs to the console
debug mode is better for sending small numbers of packets, to verify that the send/receive still works
release mode is when i test rtt and throughput
im sorry i was afk for so long
you can adjust anything you need by editing Program.cs
such as removing logging to console entirely
@mr5
 
mr5
yeah I got it working
 
mr5
it seems your measurements are off
 
by how much?
whats the cause
im using stopwatch for my measurements
which i thought was ok
 
mr5
I mean how you measure the amount of threads running
 
7:07 PM
i spin up x client instances
whenever they receive their first packet, the log themselves as active
thus, by active threads i actually mean how may client tasks received one or more response packets from the serverc
it was more useful when i had threads
bc then i wasnt waiting on all the spun up tasks
now, if a task doesnt get any response packets it hangs indefinately, with near 0 CPU usage in visual studio
@mr5 how many clients can you sustain
 
mr5
I have tweaked your code a bit. And now it says 2 - 3 threads only
and I'm not sure if this was real threads you're reporting though
 
what did you change? the client count
those could well be the ThreadPool threads
my code shouldnt spin up separate thread instances
it should use Tasks which are run on the ThreadPool
 
mr5
The inferior Task.Run
And HashSet are not thread-safe
I'm not sure if you're actually get the right bandwidths there
And we could use Parallel.For instead of Task.Factory.StartNew
 
the bandwidth should be correct
its measured in each task
its not measured from outside the task
it doesnt matter that task.run is not thread-safe, as its only used to spin up client task instances
and the hashset is also ok, as we only read it at the end, once all client tasks complete
the overall bandwidth might be wrong
but i get the same answer when i manually add up all the individual client-reported bandiwdths
 
mr5
7:23 PM
yeah fair enough
 
any other observations?
im interested to see what other people have to say about my code
 
mr5
btw, this was the report in my machine
 
did you try more than 16 client tasks?
thats about the same bandwidth that im getting
 
mr5
I tried setting the clientCount to 21 and it doesn't report the final measurements
 
yeah
that means that the client tasks hung up, as they never received a server response
you have very good pings
are you using localhost or your LAN IP
?
 
mr5
7:31 PM
yes
 
please elaborate lol
 
mr5
I'm sleepy already. I'll get back to you tomorrow
 
ok
np
you got discord or something
 
mr5
3am here lol
yeah
 
that way communication is maybe easier
and dude, seriously
 
mr5
7:34 PM
?
 
i appreciate all the help youve given me. thank you for spending the time to take a look at my problem. my discord is EnderRifter#2467
feel free to add me
 
mr5
I've added you.
NP
 
cheers my guy
 
8:40 PM
I was just trying to study and explore the ASP.NET Core Technology. I was looking at Razor Pages framework, and I'm just totally kind of shocked that it is similar to the Old ASP.NET Webforms. Isn't have a view with a dedicated code-behind too tightly-coupled and restrictive? Why did Microsoft bring back said poor software model?
 
@crazyTech Please kindly read my question below:
60
Q: Why is Razor Pages the recommended approach to create a Web UI in Asp.net Core 2.0?

Only The Paranoid SurviveLearning new things needs an investment of time, space and energy. I am currently learning Asp.Net Core MVC 2.0. This ASP.NET Core tutorials overview states: Razor Pages is the recommended approach to create a Web UI with ASP.NET Core 2.0. This information confused me in deciding whether I ...

2
 

« first day (3463 days earlier)      last day (1471 days later) »