All of lore.kernel.org
 help / color / mirror / Atom feed
* what is the sample logger doing when the buffer fills up?
@ 2016-07-06 15:56 Karl Cronburg
  2016-07-07 18:36 ` Jens Axboe
  0 siblings, 1 reply; 25+ messages in thread
From: Karl Cronburg @ 2016-07-06 15:56 UTC (permalink / raw)
  To: fio

Hello all,

When I change add_clat_sample() in stat.c to call add_log_sample() seven times
instead of once, and I set DEF_LOG_ENTRIES=4096, I get the following in the clat
log file (note first column is line number in the file):

  4089 143, 9832, 0, 131072
  4090 143, 9832, 0, 131072
  4091 143, 9832, 0, 131072
  4092 143, 9832, 0, 131072
  4093 143, 9832, 0, 131072
  4094 143, 9832, 0, 131072
  4095 143, 9832, 0, 131072
  4096 143, 9834, 0, 131072
  4097 170, 15982, 0, 131072
  4098 170, 15982, 0, 131072
  4099 170, 15982, 0, 131072
  4100 170, 15982, 0, 131072
  4101 170, 15982, 0, 131072
  4102 170, 15982, 0, 131072
  4103 170, 15982, 0, 131072
  4104 170, 15985, 0, 131072
  4105 170, 15985, 0, 131072

Notice the lonely '9834' value in the center, which should have 7
exact copies of itself
but gets cut off right at the buffer size of 4096 entries.

So if I'm interpreting this correctly, samples get silently dropped
(or not properly printed?)
when the buffer fills up. Is this a bug? Am I misinterpreting what the
doubly linked list is
for? I was under the impression that a new sample buffer should be
added to the linked
list when the current one fills up.

Thanks,
-Karl Cronburg-

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

end of thread, other threads:[~2016-07-22 19:49 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 15:56 what is the sample logger doing when the buffer fills up? Karl Cronburg
2016-07-07 18:36 ` Jens Axboe
2016-07-07 19:46   ` Karl Cronburg
2016-07-07 21:04     ` Jeff Furlong
2016-07-07 21:44       ` Jens Axboe
2016-07-07 21:47         ` Jeff Furlong
2016-07-07 21:50           ` Jens Axboe
2016-07-18 18:24             ` Matthew Eaton
2016-07-19  0:09               ` Jeff Furlong
2016-07-20 20:29                 ` Karl Cronburg
2016-07-20 21:23                   ` Jeff Furlong
2016-07-20 21:28                     ` Jeff Furlong
2016-07-20 23:46                       ` Jens Axboe
2016-07-21 15:49                         ` Karl Cronburg
2016-07-21 17:00                           ` Jeff Furlong
2016-07-21 21:26                             ` Karl Cronburg
2016-07-21 23:26                               ` Jeff Furlong
2016-07-22 14:47                                 ` Jens Axboe
2016-07-22 15:55                                   ` Jens Axboe
2016-07-22 18:37                                     ` Jens Axboe
2016-07-22 18:52                                       ` Jeff Furlong
2016-07-22 18:55                                         ` Jens Axboe
2016-07-22 19:20                                           ` Jens Axboe
2016-07-22 19:40                                             ` Jeff Furlong
2016-07-22 19:49                                               ` Jens Axboe

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.