On Sat, 2025-08-09 at 14:30 -0400, Matt Corallo wrote:
> I tend to use bash_history as a way to remember specific commands to run for 
> various tasks, often 
> quite irregularly, and thus keep HISTFILESIZE quite large (800k lines in my 
> .bash_history, for 
> 32MiB). bash/readline handle this just fine, except that I often have 
> something like 50 instances of 
> bash running in various terminal emulators. This leads to something like 
> 7.5GB of memory dedicated 
> to bash instances (around 150MB per instance), with most of it going to 
> history storage.


On Linux a possibility could be to start a single sqlite service per user and 
have every bash process communicate with it.

Another possibility could be to have every bash process communicate (with FIFO 
or sockets) with an inference engine (like the RefPerSys project I am 
developing, see my signature).

Regards.
-- 
Basile STARYNKEVITCH                            <bas...@starynkevitch.net>
8 rue de la Faïencerie                       http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                         https://github.com/bstarynk
France                                https://github.com/RefPerSys/RefPerSys

Reply via email to