SliTaz SliTaz Forum

You are not logged in.

#1 2013-07-03 10:45:48

Kate
Member
Registered: 2012-01-04
Posts: 29

Write file cache OFF

How can I disable the write cache file?

I need to write the file without cache ram.

THX

Offline

#2 2013-07-03 15:27:13

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: Write file cache OFF

Hmm...

Remount partition with -o sync option

or

write with O_DIRECT flag (if you know what is it)

You cannot turn off cache for one file, actually, only for the whole mount point.

// Why do you need this?

Offline

#3 2013-07-03 15:29:32

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: Write file cache OFF

Oh, and as for drive caching - use "busybox hdparm -W 0 /dev/your_drive"

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]