[go-nuts] Improving IPC latency?

2023-04-09 Thread TH
Hey, I'm building a software which handles hundred-ish concurrent network communications. I want to build some other parts of core logic in to a separate process. I've tried to use UDS and pipes, but they all give me ~25µs (RTT 50µs) latency and sometimes on idle 300µs (RTT 600µs). The 25µs

[go-nuts] Correct use of bufio.Reader

2023-02-05 Thread TH
ehow bufio.Reader is like 3-4x faster even I thought I had an optimized code. Thanks - TH -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nu

Re: [go-nuts] Minimizing net latency?

2022-07-29 Thread TH
tem - so it is actually your processing code that is > taking longer. > > You can probably use ‘perf’ on the process to monitor the cache misses. > > On Jul 29, 2022, at 7:08 PM, TH wrote: > > Hey, > > Bit confused on how stdlib net is implemented, but I'm noticing round

[go-nuts] Minimizing net latency?

2022-07-29 Thread TH
Hey, Bit confused on how stdlib net is implemented, but I'm noticing round trip >150µs latencies on idle connections (loopback). Round trip latency will drop to <20µs if sent packets constantly. I assume that this latency is caused by kernel / syscall wakeup to indicate that new data has

[go-nuts] Cache miss on global variables?

2022-07-17 Thread TH
Hey, It seems that structs perform faster when aligned with cache line size, but how about when using global variables? Would it be more performant if I used a struct to hold multiple cache values instead of global variables? To clarify, for example: var ( val0 int val1 int ...

Re: [go-nuts] Temporary prevent preemption?

2022-06-29 Thread TH
uot;. I'll leave it to others to > explain why this can be risky; especially in a context like you described. > > On Tue, Jun 28, 2022 at 6:45 PM TH wrote: > >> Hey, >> >> I'm writing some latency & speed sensitive routines that are processing >> large amount o

[go-nuts] Re: Temporary prevent preemption?

2022-06-28 Thread TH
ces code together (data processing part as 5 additional goroutines) speed decreases to <50% (No lock contention between the two pieces of code, by analyzing more carefully it seems that processing routine gets interrupted in midway) Thanks On Wednesday, 29 June 2022 at 04:45:10 UTC+3 TH wrote:

[go-nuts] Temporary prevent preemption?

2022-06-28 Thread TH
Hey, I'm writing some latency & speed sensitive routines that are processing large amount of signal data in batches. When I run this in a standalone program the speed is fine. However when I combine this to the rest of software (>1000 goroutines, mainly network code) the speed gets reduced by

[go-nuts] Scheduler prioritization on time sensitive routines?

2022-05-08 Thread TH
Hey, I have few time sensitive functions that are being executed from multiples goroutines. I'm trying to minimize latency, or make the latency more consistent. (Not using RT kernel and no lock contention) I'm wondering if scheduler can switch context in the middle of a running function (no

[go-nuts] How to achive that moby sends the portainer authentification with every call?

2018-03-12 Thread th . he . 1906
I am trying to automate the update of docker-compose.yml files with a go program in a secure way by using the authentification of portainer. Is there any chance you could help me figure out how to achive that whenever I make a call with moby the