[ 
https://issues.apache.org/jira/browse/JCS-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Vandahl resolved JCS-148.
--------------------------------
       Resolution: Fixed
    Fix Version/s: jcs-2.0-beta-2
         Assignee: Thomas Vandahl

Fixed in SVN.

> Unnecessary use of FileChannel.force() in Indexed and Block Disk Caches
> -----------------------------------------------------------------------
>
>                 Key: JCS-148
>                 URL: https://issues.apache.org/jira/browse/JCS-148
>             Project: Commons JCS
>          Issue Type: Improvement
>          Components: Indexed Disk Cache
>    Affects Versions: jcs-2.0-beta-1
>            Reporter: Wiktor N
>            Assignee: Thomas Vandahl
>             Fix For: jcs-2.0-beta-2
>
>
> In: IndexedDisk.write() and BlokDisk.write() at the end FileChannel.force() 
> is called.
> It introduces a lot of I/O and affects performance.
> After removal of these two lines, mvn test raises no issues.
> The test case 
> org.apache.commons.jcs.auxiliary.disk.indexed.HugeQuantityIndDiskCacheLoadTest
>  goes from 450 seconds needed for completion to 30 seconds on my system.
> As the data file is useless without proper keyfile, which is stored only on 
> shutdown, then I guess we can resign from fc.force() on data writes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to