You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Wiktor N (JIRA)" <ji...@apache.org> on 2015/04/04 23:08:33 UTC
[jira] [Created] (JCS-148) Unnecessary use of FileChannel.force()
in Indexed and Block Disk Caches
Wiktor N created JCS-148:
----------------------------
Summary: 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
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)