Re: [Yaffs] Yaffs cache disabling

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] Yaffs cache disabling
On Friday 06 July 2012 23:28:45 Giovanni Rana wrote:
> Good moorning everybody,
>
> I would like to disable Yaffs caching of pages (at run-time). Is there a
> way to do it?
>
> Best regards,
> Giovanni Rana


Hello Giovanni

There are really three answers to this question...

First, you can disable the cache before mounting by setting
dev->param.n_caches to zero. In Linux you can mount with -o no-cache.

Secondly, you can empty the current cache by using sync().

There is no way to disable the cache once a partition is mounted.

Why do you want to disable the cache? It generally provides speed advantages.

-- Charles