Hi (again) Maurizio,
I'm not fully understanding what you're trying to do.
If you want to fully flush the cache of all entries for a specific filesystem, then you have to do the following
1)unmount filesystem
2)issue multiple sync commands - 3 one after the other ought to do it.
3)mount filesystem
Now, having the buffer max % at 50% is a huge waste & depending on installed RAM on this system you may want to bring this way down.
The only other thing you can do to manipulate the cache buffer would be to adjust the sync interval
/usr/sbin/syncer XX
where XX=seconds - default is 30.
But this is *not* recommended unless you're having performance issues as it could cause issues by itself.
Other thing that could be done is to bypass the buffer cache with mount options such as
convosync=direct
mincache=direct
then the buffer cache would not be used for this filesystem.
I think you need to more fully explain just *what* it is you're trying to accomplish.
Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!