-
1. Re: MaxIO, MinFiles and JournalFileSize
ataylor May 13, 2008 12:58 PM (in response to clebert.suconic)whatever the best configuration turns out to be, we need document this well and have multiple examples for different scenarios that a user can easily switch between without having to fully understand the ins and outs AIO. i.e. best config for heavy throughput, low throughput with large messages etc etc.
-
2. Re: MaxIO, MinFiles and JournalFileSize
clebert.suconic May 13, 2008 1:08 PM (in response to clebert.suconic)I really want to keep freeFiles closed.
With that we can have as many free files as we want without having the side effect of this formula:
NumberOfOpenedFiles * MAX_AIO_PER_FILE <= GLOBAL_MAX_AIO
As for now, I have made MAX_AIO = 2000, so our testsuite can complete without any problems. -
3. Re: MaxIO, MinFiles and JournalFileSize
ataylor May 13, 2008 1:18 PM (in response to clebert.suconic)I really want to keep freeFiles closed.
Is there something stopping us from doing this? -
4. Re: MaxIO, MinFiles and JournalFileSize
clebert.suconic May 13, 2008 1:24 PM (in response to clebert.suconic)"ataylor" wrote:
I really want to keep freeFiles closed.
Is there something stopping us from doing this?
Yes.. Tim Fox! :-D -
5. Re: MaxIO, MinFiles and JournalFileSize
timfox May 13, 2008 3:05 PM (in response to clebert.suconic)The idea with freeFiles being pre-opened is to prevent a pause when the journal moves to the next file as it opens the file.
-
6. Re: MaxIO, MinFiles and JournalFileSize
clebert.suconic May 13, 2008 5:23 PM (in response to clebert.suconic)"timfox" wrote:
The idea with freeFiles being pre-opened is to prevent a pause when the journal moves to the next file as it opens the file.
We could have only the first freeFile opened.
A checkout from freeFile would aways return instantly while another thread would open the next first file. Same way as we would have another thread closing the file. (since that represents a big pause on AIO).
And I would make the files bigger by default also.. as I said before... to avoid opening and closing them so often under high load. -
7. Re: MaxIO, MinFiles and JournalFileSize
ataylor May 14, 2008 3:28 AM (in response to clebert.suconic)or we could have 2 files open, one being used and one ready. The thread that closes file 1, opens file 3 ready and so on. This means that we always have MAX_AIO_PER_FILE = GLOBAL_MAX_AIO/2
-
8. Re: MaxIO, MinFiles and JournalFileSize
timfox May 14, 2008 3:34 AM (in response to clebert.suconic)"ataylor" wrote:
or we could have 2 files open, one being used and one ready. The thread that closes file 1, opens file 3 ready and so on. This means that we always have MAX_AIO_PER_FILE = GLOBAL_MAX_AIO/2
Sounds like a good idea -
9. Re: MaxIO, MinFiles and JournalFileSize
clebert.suconic May 14, 2008 12:13 PM (in response to clebert.suconic)Yes... that's what I meant when I said to keep the first freeFile opened.
The freeFile concept will be used for the pre allocations only, and we will aways have 2 files opened. (The current and next)