The Python version of the server side of KATCP is shown below.   (there may 
be a C version somewhere) 
.
https://github.com/ska-sa/katcp-python/blob/master/katcp/server.py

This uses futures from concurrent.futures  and  tornado futures.  As some 
may already know,  "threading" in Python is fake.  All threads stall all 
other threads due to a Global Interpreter Lock  (GIL).     This is exactly 
the behavior that I am seeing from network speed tests.   One of my own 
processes can retrieve from a Snapshot at 2.1 Megabytes/sec.     However, 
for 8 concurrent processes,  I only see  6.1 Megabytes/sec.  It is exactly 
as if the parallel connections refuse to stack up correctly.  If the 
CASPERized Linux on the PS of the board side is running Python Katcp (and 
not the C version)  then it would be stalling connections until the GIL 
allows them into the single thread-of-execution. 

Can anyone on this forum confirm any of this?   What is happening on the 
CASPERized Linux image?  Where could I see this for myself?   What 
processes in ps aux might I see related to  katcp servers on the PS side? 
   



On Sunday, December 8, 2024 at 12:26:26 AM UTC-5 Ken Semanov wrote:

> Is there a way I could nose around the katcp server on the board side in 
> order to see how it is configured?   
>
> Could I reconfigure this server after booting into the board? 
>
> I am using a CASPERized image on a ZCU216.  I am migrating data out of 
> snapshot blocks over network.  After several network tests, it appears that 
> the katcp on the board side (PS)  is artificially limited to 3 or 4 
> simultaneous network connections over RJ45 ethernet.   My use-case needs 
> this to be more like 8 to 16 connections.  I may also need to change the 
> packet size. 
>
> Thanks. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/de383a42-be56-4dff-bc41-56d4fdfef933n%40lists.berkeley.edu.

Reply via email to