On Wed, 2013-06-12 at 14:06 +0200, Per Jessen wrote:
Roger Oberholtzer wrote:
If you let your test app run, and the file it creates grow and grow, how does the cache usage progress?
It stayed at about 1G.
Here is my test app, which tyies to capture the spirit of what the real app is doing. It demonstrates the cache growing issue on both 12.1 and 12.3. cc diskio.c -o diskio It makes big files in the directory from which it is run. It runs until you kill it. The trace statements are periodic listings of the data rate, max and most recent write times. aka, what was interesting to me. I used xosview to monitor the memory cache. Deleting the files it makes frees the cache. Of course, in my real world use, deleting them is not an option... In the real app, the write calls are whatever the compression library does. We used more than one and each does this differently: one does lots of little fwrites, and one does bit chunks at a time. As they are opened as FILE and thus buffered, I do not think the specific fwrites makes a difference. It is the data rate, Yours sincerely, Roger Oberholtzer Ramböll RST / Systems Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se