All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Use of sub-buffers - more subbuffers but smaller, or less but bigger?
       [not found] <OF47254F23.1A4EBFF6-ONC2257BB9.003393B9-C2257BB9.0033D3A6@il.ibm.com>
@ 2013-08-07  1:13 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-08-07  1:13 UTC (permalink / raw)
  To: Amit Margalit; +Cc: lttng-dev

* Amit Margalit (AMITM@il.ibm.com) wrote:
> Hello,
> 
> I'm trying to understand the trade-offs involved in choosing sub-buffer 
> number and size.
> 
> So the question is what are the benefits and the disadvantages of 
> choosing, say, 32 subbuffers of 1MB versus 8 subbuffers of 4MB, or maybe 4 
> subbuffers of 8MB?

Boundaries of subbuffers are synchronization points, so you add slightly
more overhead with smaller sub-buffers. This is an argument for having
few large sub-buffers.

Also, with periodical timer flush (useful for upcoming streaming
feature), you might want more than two sub-buffers per buffer, because
otherwise, you might run into situations where the buffer appears to be
full (and therefore events are discarded) just because the timer flush
flushes a sub-buffer before it is filled. This is an argument for not
making the number of sub-buffers _too_ small if you use switch timer.

Hoping this helps,

Mathieu

> 
> Thanks,
> 
> Amit Margalit
> IBM XIV - Storage Reinvented
> XIV-NAS Development Team
> Tel. 03-689-7774
> Fax. 03-689-7230
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Use of sub-buffers - more subbuffers but smaller, or less but bigger?
@ 2013-07-31  9:26 Amit Margalit
  0 siblings, 0 replies; 2+ messages in thread
From: Amit Margalit @ 2013-07-31  9:26 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 372 bytes --]

Hello,

I'm trying to understand the trade-offs involved in choosing sub-buffer 
number and size.

So the question is what are the benefits and the disadvantages of 
choosing, say, 32 subbuffers of 1MB versus 8 subbuffers of 4MB, or maybe 4 
subbuffers of 8MB?

Thanks,

Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230

[-- Attachment #1.2: Type: text/html, Size: 860 bytes --]

[-- Attachment #2: Type: text/plain, Size: 155 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-07  1:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <OF47254F23.1A4EBFF6-ONC2257BB9.003393B9-C2257BB9.0033D3A6@il.ibm.com>
2013-08-07  1:13 ` Use of sub-buffers - more subbuffers but smaller, or less but bigger? Mathieu Desnoyers
2013-07-31  9:26 Amit Margalit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.