You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that I had serious memory issues that were consuming at least 500MB on each side.
Basically, it was how I was forcing things to grown to the maximum allocation size in
sshbuf_allocate. Additionally, PACKET_MAX_SIZE was putting more pressure on things when it was
at the default of 256KB. I reduced it to SSH_IOBUFSZ + 1K (so 33KB) and it seems to be a lot
more responsive and a lot less memory hungry.
Lastly, I added two new thingt o aid with debugging. The first is the ability to label the sshbuf structs
that are being created. This is just a freeform text label that defaults to the function name of
the function that called sshbuf_new. Second is a routine called read_mem_stats that gets the
current memory usage of the application. This only works under linux though as it requires access
to proc.
0 commit comments