Does Linux sync(2) wait?
A message that is not in the archive (sent off-list or not yet received): [email protected]
On Sun, 21 Mar 2004 11:40:08 +0100, you wrote in linux.kernel:
Quoted 3 lines
Looking at 2.4 and 2.6 sources, Linux does appear to wait before returning. I'm especially interested if NFS data is sent to the server. (I want to be able to take a stable snapshot of a netapp volume.)
No idea about NFS, but sync(1) does wait. When I push 500M out to my MO drive, the cp operation returns fairly quickly because I usually have more than 500M free memory. Then I run sync(1), which takes about 20 minutes before it returns.
Signature · 2 lines
Ciao, Pascal
Quoted 4 lines · Pascal Schmidt
No idea about NFS, but sync(1) does wait. When I push 500M out to my MO drive, the cp operation returns fairly quickly because I usually have more than 500M free memory. Then I run sync(1), which takes about 20 minutes before it returns.
20 minutes?!
Quoted 10 lines · Chris Wedgwood
Quoted 5 lines · Pascal Schmidt
No idea about NFS, but sync(1) does wait. When I push 500M out to my MO drive, the cp operation returns fairly quickly because I usually have more than 500M free memory. Then I run sync(1), which takes about 20 minutes before it returns.
20 minutes?!
He did say it was a magneto-optical drive.
Chris
Hi.
Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
No idea about NFS, but sync(1) does wait. When I push 500M out to my MO drive, the cp operation returns fairly quickly because I usually have more than 500M free memory. Then I run sync(1), which takes about 20 minutes before it returns.
20 minutes?!
He did say it was a magneto-optical drive.
That's 400KiB/s you know - pretty slow.
// Stefan
Quoted 3 lines · Stefan Smietanowski
Quoted 2 lines
Quoted 1 line
20 minutes?!
He did say it was a magneto-optical drive.
That's 400KiB/s you know - pretty slow.
Yes. It's almost exclusively used once per week for backup purposes. Speed doesn't matter for that (about 400 MB of often changing data on /home), reliability counts.
Data that doesn't really change (old kernel releases and such) is also on MO, but that's "write once, than forget about it", so once again speed doesn't matter that much.
Signature · 2 lines
Ciao, Pascal