* Disable cache disk
@ 2005-03-30 13:00 Yves Crespin
2005-03-30 15:34 ` Michael Tokarev
2005-03-30 15:38 ` Christian Bornträger
0 siblings, 2 replies; 5+ messages in thread
From: Yves Crespin @ 2005-03-30 13:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Yves Crespin
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
Hello,
I write a lot of files on a USB disk for video monitoring archiving.
The write program is faster than the USB.
Cache disk take all RAM and kernel start swapping and everything become
very slow.
1/ is-it possible to *really* be synchronize. I prefer to have a blocked
write() than use cache and get swap!
2/ is-it possible to disable cache disk ?
Thanks,
Yves
[-- Attachment #2: crespin.quartz.vcf --]
[-- Type: text/x-vcard, Size: 295 bytes --]
begin:vcard
fn:Yves Crespin
n:Crespin;Yves
org:Quartz
adr:Hameau du Pra - CIDEX 322;;39, rue Victor Hugo;CROLLES;;38920;France
email;internet:Crespin.Quartz@Wanadoo.fr
tel;work:04.76.92.21.91
tel;cell:06.86.42.86.81
x-mozilla-html:FALSE
url:http://crespin.quartz.free.fr/
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable cache disk
2005-03-30 13:00 Disable cache disk Yves Crespin
@ 2005-03-30 15:34 ` Michael Tokarev
2005-03-30 15:38 ` Christian Bornträger
1 sibling, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2005-03-30 15:34 UTC (permalink / raw)
To: Yves Crespin; +Cc: linux-kernel
Yves Crespin wrote:
> Hello,
>
> I write a lot of files on a USB disk for video monitoring archiving.
> The write program is faster than the USB.
> Cache disk take all RAM and kernel start swapping and everything become
> very slow.
> 1/ is-it possible to *really* be synchronize. I prefer to have a blocked
> write() than use cache and get swap!
> 2/ is-it possible to disable cache disk ?
Try open() with O_DIRECT flag for a start.
/mjt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable cache disk
2005-03-30 13:00 Disable cache disk Yves Crespin
2005-03-30 15:34 ` Michael Tokarev
@ 2005-03-30 15:38 ` Christian Bornträger
2005-03-31 7:23 ` Yves Crespin
1 sibling, 1 reply; 5+ messages in thread
From: Christian Bornträger @ 2005-03-30 15:38 UTC (permalink / raw)
To: Yves Crespin; +Cc: linux-kernel
On Wednesday 30 March 2005 15:00, Yves Crespin wrote:
> 1/ is-it possible to *really* be synchronize. I prefer to have a blocked
> write() than use cache and get swap!
Try to mount with the sync option.
> 2/ is-it possible to disable cache disk ?
your copy tool has to support/use O_DIRECT
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable cache disk
2005-03-30 15:38 ` Christian Bornträger
@ 2005-03-31 7:23 ` Yves Crespin
2005-03-31 8:25 ` Christian Borntraeger
0 siblings, 1 reply; 5+ messages in thread
From: Yves Crespin @ 2005-03-31 7:23 UTC (permalink / raw)
To: Christian Bornträger; +Cc: linux-kernel
Christian Bornträger wrote:
>On Wednesday 30 March 2005 15:00, Yves Crespin wrote:
>
>
>>1/ is-it possible to *really* be synchronize. I prefer to have a blocked
>>write() than use cache and get swap!
>>
>>
>
>Try to mount with the sync option.
>
>
exactly async and noatime ?
>
>
>>2/ is-it possible to disable cache disk ?
>>
>>
>
>your copy tool has to support/use O_DIRECT
>
>
is O_DIRECT a POSIX option ?
http://www.opengroup.org/onlinepubs/007908799/xsh/open.html
Is O_SYNC also necessary ?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Disable cache disk
2005-03-31 7:23 ` Yves Crespin
@ 2005-03-31 8:25 ` Christian Borntraeger
0 siblings, 0 replies; 5+ messages in thread
From: Christian Borntraeger @ 2005-03-31 8:25 UTC (permalink / raw)
To: Yves Crespin; +Cc: linux-kernel
Yves Crespin wrote:
> Christian Bornträger wrote:
> >On Wednesday 30 March 2005 15:00, Yves Crespin wrote:
> >>1/ is-it possible to *really* be synchronize. I prefer to have a
> >> blocked write() than use cache and get swap!
> >Try to mount with the sync option.
> exactly async and noatime ?
No. async is exactly the behaviour you dont want. Problem is, the "sync"
mount option is not available for every file system. At least ext2, ext3,
and ufs support this option. No idea about other filesystems.
> >>2/ is-it possible to disable cache disk ?
> >
> >your copy tool has to support/use O_DIRECT
>
> is O_DIRECT a POSIX option ?
No it is a Linux extension.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-31 8:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30 13:00 Disable cache disk Yves Crespin
2005-03-30 15:34 ` Michael Tokarev
2005-03-30 15:38 ` Christian Bornträger
2005-03-31 7:23 ` Yves Crespin
2005-03-31 8:25 ` Christian Borntraeger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox