Re: [dev] [st] Larger HISTSIZE consumes huge memory

From: Jochen Sprickerhof <>
Date: Thu, 22 Jun 2017 11:34:05 +0200

* Techno Implant <> [2017-06-21 19:39]:
> With HISTSIZE being 2000 memory consumed is around 8MiB
> And for 40000 it's 120MiB. This is a large number for terminal.
> Whereas for urxvt I set saveLines to 65000 and it consumes less around
> 8MiB. It increases when I have more lines in scrollback .
> So my question is if there's a patch that can make st handle
> scrollback lines dynamically rather than preallocate.

What's the problem here? It's only virtual memory, so the Kernel should
do exactly that already.

> And also will there be any daemon mode available for st?

Why? So you can crash all terminals at once? Otherwise: If you want it,
write it ;).

Cheers Jochen

Received on Thu Jun 22 2017 - 11:34:05 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 22 2017 - 11:36:15 CEST