Skip to content

Commit d1ccfb0

Browse files
committed
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.
1 parent b1f6002 commit d1ccfb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
#define SSH_VERSION "OpenSSH_9.3"
44

55
#define SSH_PORTABLE "p1"
6-
#define SSH_HPN "-hpn17v12"
6+
#define SSH_HPN "-hpn17v13"
77
#define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_HPN

0 commit comments

Comments
 (0)