[PATCH 2/2] ramfs: increase chunk size to 8192 bytes

Sascha Hauer s.hauer at pengutronix.de
Mon Dec 5 04:04:00 EST 2011


dlmalloc seems to work more efficient with this chunk size.
Copying a bigger file (3MB) takes 271ms vs. 125ms on a i.MX27
board. Even bigger chunk sizes do not further improve performance.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 fs/ramfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ramfs.c b/fs/ramfs.c
index db417e1..5e352f2 100644
--- a/fs/ramfs.c
+++ b/fs/ramfs.c
@@ -30,7 +30,7 @@
 #include <linux/stat.h>
 #include <xfuncs.h>
 
-#define CHUNK_SIZE	4096
+#define CHUNK_SIZE	(4096 * 2)
 
 struct ramfs_chunk {
 	char *data;
-- 
1.7.7.3




More information about the barebox mailing list