Skip to contentSkip to conversation

on-disk multiple tracefiles circular buffer

RFC Julien Desfossez 1 participant 1 message Feb 14, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 501458912.795461360787706118.JavaMail.root@srv12.zimbra.polymtl.ca

#1 lore raw
Quoted 4 lines
Quoted 2 lines

-C limits the maximum file size and -W the amount of such files to keep on disk.

Do you round up to the next packet / subbuffer / event?

We won't exceed the maximum file size specified, so when we detect that a write will be too big, we rotate the tracefile before writing in it. The smallest file size the user can specify will be the subbuffer size.

Quoted 1 line

In the upcoming releases, there should be small indexes telling where each packet / subbuffer starts in each file. How are these index files affected by these switches?

There will be one index file per tracefile, so the logic to write the index file will be the same as the logic to write the tracefile : when we rotate the tracefile, we rotate the index file.

It is a good question since we might end up with a lot of files though, for each channel : 2*CPU*tracefile_count.

I'd like to hear what the others have to say about that.

Thank you,

Julien