sb0 changed the topic of #m-labs to: ARTIQ, Migen, MiSoC, Mixxeo & other M-Labs projects :: fka #milkymist :: Logs http://irclog.whitequark.org/m-labs
calle__ has quit [Ping timeout: 276 seconds]
digshadow has quit [Ping timeout: 276 seconds]
digshadow has joined #m-labs
sandeepkr_ has joined #m-labs
kuldeep__ has joined #m-labs
sandeepkr_ has quit [Max SendQ exceeded]
sandeepkr_ has joined #m-labs
sandeepkr_ has quit [Max SendQ exceeded]
sandeepkr_ has joined #m-labs
kuldeep_ has quit [Ping timeout: 250 seconds]
sandeepkr has quit [Ping timeout: 250 seconds]
sandeepkr__ has joined #m-labs
sandeepkr_ has quit [Ping timeout: 260 seconds]
kuldeep__ has quit [Ping timeout: 260 seconds]
sandeepkr_ has joined #m-labs
kuldeep__ has joined #m-labs
kuldeep__ is now known as kuldeep
rohitksingh has joined #m-labs
sandeepkr__ has quit [Ping timeout: 240 seconds]
<whitequark> sb0: two small questions about the protocol.
<whitequark> 1) as I understand one of the goals for the rust runtime is to put the kernel into a buffer on the heap, such that large kernels can be loaded
<sb0> yes
<whitequark> the way I currently have tcp receiving side implemented is that it holds a pbuf in a TcpStream implementing Write, and gives out bytes from there
<whitequark> in principle I could figure out something such that small strings are parsed without copying or allocation, but this seems to have nontrivial complexity and unclear benefits
<whitequark> so for now I am allocating all strings on comms CPU heap on receipt (except for RPCs, where the contents is copied directly to the kernel CPU stack)
<whitequark> are you fine with that?
kyak_ is now known as kyak
<whitequark> this only really affects flash storage and RPC exceptions
<whitequark> oh, and of course instead of mostly-zero-copy right now, I could always do one copy into a long extensible buffer and then return references into it
<whitequark> that's strictly worse for RPCs though because I would have to keep the contents of an entire serialized RPC in memory (like it happens now) whereas with the zero-copy scheme I'm going with in runtime.rs that's not the case.
<whitequark> oh and 2) right now there is length in the packet header
<whitequark> it's redundant for, I believe, every packet except LoadLibrary
<whitequark> and it prevents me from streaming the reply (or request for that matter) packets, since I don't know it beforehand
<whitequark> I suggest removing it from the header and instead transmitting the payload of LoadLibrary like all other byte buffers are transmitted
<whitequark> objections?
<sb0> 2) ok
<sb0> 1) also sounds ok, there are no long strings right?
<whitequark> nope
<whitequark> I might actually even skip allocating a buffer for the kernel
<whitequark> because the allocator I wrote is fragmentation-prone
<whitequark> just write it directly into kernel CPU memory
<whitequark> hm, or will that fail timings somewhere?
<whitequark> yes, this seems troublesome when doing handover if the network has a latency spike
<sb0> are you modifying the session behavior already?
<sb0> i.e. you could load multiple kernels into the device
<whitequark> not yet, i'm porting the old one
rohitksingh has quit [Read error: Connection reset by peer]
rohitksingh has joined #m-labs
calle__ has joined #m-labs
_whitelogger has joined #m-labs
kuldeep has quit [Ping timeout: 264 seconds]
larsc has joined #m-labs
kuldeep has joined #m-labs
kuldeep has quit [Remote host closed the connection]
sandeepkr_ has quit [Ping timeout: 255 seconds]
kuldeep has joined #m-labs
sandeepkr has joined #m-labs
bentley` has joined #m-labs
calle__ has quit [Ping timeout: 265 seconds]
calle__ has joined #m-labs
calle__ has quit [Ping timeout: 255 seconds]
cr1901_modern1 has joined #m-labs
cr1901_modern has quit [Ping timeout: 276 seconds]
cr1901_modern1 is now known as cr1901_modern
digshadow has quit [Ping timeout: 255 seconds]
rohitksingh has quit [Quit: Leaving.]
mumptai has joined #m-labs
digshadow has joined #m-labs
digshadow1 has joined #m-labs
digshadow has quit [Ping timeout: 244 seconds]
digshadow has joined #m-labs
digshadow1 has quit [Ping timeout: 265 seconds]
digshadow has quit [Ping timeout: 240 seconds]
digshadow has joined #m-labs
stekern_ is now known as stekern
Gurty has quit [Changing host]
Gurty has joined #m-labs
digshadow1 has joined #m-labs
digshadow has quit [Ping timeout: 272 seconds]
mumptai has quit [Remote host closed the connection]