On Mon, Sep 09, 2013 at 09:36:49AM -0700, Edward Peschko wrote:
> All,
> 
> I have some memory consumption problems with tmux - I like to have
> lots of windows and panes running processes, but only some of them do
> I need large buffers for.

Then don't set such a high history-limit?

> Hence, I was wondering if it was possible to specify the buffer size
> for each individual pane - eg. 200000 for the large, monitored
> process, 25 for the quickfix windows.

Well, you could set history-limit before spawning new panes for certain
things.

> I see 'set history limit', but it doesn't seem to be functioning - ie:
> when I set the history limit, it still can scrollback a lot more lines
> than I just set it to.

Where are you seeing this?  It isn't applied retroactively, and it's
specified at the point the window pane is created.  When lines are added to
the grid, then the history-limit is used to work out which lines to free;
it's a rolling total if you like.  When you hit the history-limit, lines are
removed to make way for new lines, but the limit then is always the
history-limit.

> Also - side note - when is the memory freed back to the os? right
> after the set history command is issued? Or do I have to restart the
> tmux session in question?

It's freed when the pane ends.

Really what ought to happen is that lines aren't preallocated based on the
history-limit, but the grids are realloc()d when needed.  However, this
would not only mess with wrapping of lines in panes, but it would make it
slow.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to