login
Header Space

 
 

Re: fsync performance hit on 1.6.1

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Cc: <tech-kern@...>
Date: Monday, July 7, 2003 - 3:45 am

For our application, we have 1 process capturing images from a frame-grabber
and dumping them to a file in a memory file system. It sends a UDP message
to another process that reads the images from this file and writes them to
disk in a database. The first process has to guarantee that after it's done
writing that image to the memory file system, that it is actually there for
the second process to read. The problem is slightly more complicated, as we
have systems out in the field running 1.5.1 which we still need to support.

I've tried opening the file with O_SYNC and not doing the fsync(). On 1.5.1,
this has increased the write() time slightly, which was expected, but the
overall processor utilization hasn't changed much. On 1.6.1, this has the
same impact as just removing the fsync() - which I expected because of the
MNT_SYNCHRONOUS flag in the mfs mount in 1.6.1. So far, I haven't had any
problems with this solution. Will this solution guarantee that whatever the
first process writes is there for the second process to read?

----- Original Message -----
From: "Chuck Silvers" <chuq@chuq.com>
To: "Daniel Brewer" <danielb@cat.co.za>
Cc: <tech-kern@netbsd.org>
Sent: Sunday, July 06, 2003 6:00 PM
Subject: Re: fsync performance hit on 1.6.1


noticed an inexplicably high usage on 161. After digging deeper with gprof,
I found that an fsync on 161 takes significantly longer than on 151. Our
software writes captured images into a ring buffer in a memory file-system,
so other servers can retrieve them. Could someone explain the why fsync on
1.6.1 is so significantly slower than on 1.5.1? Is there a work-around? Or
perhaps a completely different way of doing this?
Celeron) both have the same motherboard, have 128MB ram and are both running
Western Digital 20Gig drives. Running the 161 box on a 2GHz celeron with
256MB ram gives comparable results to the 1.2Ghz Celeron with 128MB ram.
WritePostEventDisk(int, int, int, int)
WritePostEventDisk(int, int, int, int)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: fsync performance hit on 1.6.1, Daniel Brewer, (Mon Jul 7, 3:45 am)
Re: fsync performance hit on 1.6.1, Jochen Kunz, (Tue Jul 8, 4:16 am)
Re: fsync performance hit on 1.6.1, David Laight, (Tue Jul 8, 8:17 am)
Re: fsync performance hit on 1.6.1, Matthias Buelow, (Tue Jul 8, 2:18 pm)
Re: fsync performance hit on 1.6.1, Matthew Mondor, (Thu Jul 10, 6:08 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Tue Jul 8, 4:57 pm)
Re: fsync performance hit on 1.6.1, der Mouse, (Tue Jul 8, 11:09 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Wed Jul 9, 3:01 am)
Re: fsync performance hit on 1.6.1, Christoph Hellwig, (Wed Jul 9, 4:07 am)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Wed Jul 9, 12:26 pm)
Re: fsync performance hit on 1.6.1, Matt Thomas, (Wed Jul 9, 2:13 pm)
Re: fsync performance hit on 1.6.1, Kamal R Prasad, (Thu Jul 10, 2:11 am)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Wed Jul 9, 3:22 pm)
Re: fsync performance hit on 1.6.1, Christoph Hellwig, (Wed Jul 9, 12:43 pm)
Re: fsync performance hit on 1.6.1, Matthias Buelow, (Wed Jul 9, 2:34 pm)
POSIX shm_open() vs. mmap(MAP_ANON|MAP_SHARED)...., Greg A. Woods, (Wed Jul 9, 2:17 pm)
Re: POSIX shm_open() vs. mmap(MAP_ANON|MAP_SHARED)...., Greg A. Woods, (Thu Jul 10, 12:37 pm)
Re: funlink() for fun!, Greg A. Woods, (Thu Jul 10, 12:35 pm)
Re: funlink() for fun!, Roland Dowdeswell, (Fri Jul 11, 11:03 am)
Re: funlink() for fun!, Greg A. Woods, (Fri Jul 11, 1:58 pm)
Re: funlink() for fun!, Greywolf, (Fri Jul 11, 7:20 pm)
Re: funlink() for fun!, , (Sat Jul 12, 7:07 am)
Re: funlink() for fun!, Greg A. Woods, (Sat Jul 12, 4:11 am)
Re: funlink() for fun!, Greywolf, (Fri Jul 11, 4:42 pm)
Re: funlink() for fun!, Greg A. Woods, (Fri Jul 11, 7:02 pm)
Re: funlink() for fun!, Greywolf, (Thu Jul 10, 5:52 pm)
Re: funlink() for fun!, Greg A. Woods, (Thu Jul 10, 6:34 pm)
Re: funlink() for fun!, Greywolf, (Thu Jul 10, 6:51 pm)
Re: funlink() for fun!, Greg A. Woods, (Thu Jul 10, 7:56 pm)
Re: funlink() for fun!, der Mouse, (Thu Jul 10, 11:41 pm)
Re: funlink() for fun!, Greg A. Woods, (Fri Jul 11, 3:31 am)
Re: funlink() for fun!, der Mouse, (Fri Jul 11, 4:12 am)
Re: funlink() for fun!, Greg A. Woods, (Fri Jul 11, 1:47 pm)
Re: funlink() for fun!, Greywolf, (Fri Jul 11, 10:20 pm)
Re: funlink() for fun!, Matthias Buelow, (Fri Jul 11, 9:38 pm)
Re: funlink() for fun!, Greg A. Woods, (Sat Jul 12, 4:47 am)
Re: funlink() for fun!, Matthias Buelow, (Fri Jul 11, 9:53 pm)
Re: funlink() for fun!, Greg A. Woods, (Sat Jul 12, 4:54 am)
Re: funlink() for fun!, Greywolf, (Sat Jul 12, 5:11 am)
Re: funlink() for fun!, Greg A. Woods, (Sat Jul 12, 1:57 pm)
Re: funlink() for fun!, der Mouse, (Mon Jul 14, 6:00 pm)
Re: funlink() for fun!, Greg A. Woods, (Mon Jul 14, 8:07 pm)
Re: funlink() for fun!, der Mouse, (Mon Jul 14, 8:42 pm)
Re: funlink() for fun!, der Mouse, (Sat Jul 12, 4:57 am)
Re: funlink() for fun!, Greg A. Woods, (Sat Jul 12, 1:48 pm)
Re: funlink() for fun!, Greywolf, (Mon Jul 14, 12:24 pm)
Re: funlink() for fun!, Greg A. Woods, (Mon Jul 14, 1:44 pm)
Re: funlink() for fun!, Greywolf, (Mon Jul 14, 2:20 pm)
Re: funlink() for fun!, Greg A. Woods, (Mon Jul 14, 5:43 pm)
Re: funlink() for fun!, Greywolf, (Mon Jul 14, 7:05 pm)
Re: funlink() for fun!, Matthias Buelow, (Mon Jul 14, 4:51 pm)
Re: funlink() for fun!, Matthias Buelow, (Sun Jul 13, 4:25 pm)
Re: funlink() for fun!, Greg A. Woods, (Sun Jul 13, 6:58 pm)
Re: funlink() for fun!, der Mouse, (Mon Jul 14, 7:56 pm)
Re: funlink() for fun!, Matthias Buelow, (Mon Jul 14, 10:19 am)
Re: funlink() for fun!, Greg A. Woods, (Mon Jul 14, 12:08 pm)
Re: funlink() for fun!, Bill Studenmund, (Tue Jul 15, 2:47 pm)
Re: funlink() for fun!, , (Tue Jul 15, 3:09 pm)
Re: funlink() for fun!, Bill Studenmund, (Tue Jul 15, 3:40 pm)
Re: funlink() for fun!, Ignatios Souvatzis, (Tue Jul 15, 4:02 pm)
Re: funlink() for fun!, Bill Studenmund, (Tue Jul 15, 4:28 pm)
Re: funlink() for fun!, der Mouse, (Tue Jul 15, 3:49 pm)
Re: funlink() for fun!, Matthias Buelow, (Mon Jul 14, 12:34 pm)
Re: funlink() for fun!, Ben Harris, (Mon Jul 14, 2:06 pm)
Re: funlink() for fun!, Greg A. Woods, (Mon Jul 14, 2:30 pm)
Re: funlink() for fun!, Bill Studenmund, (Tue Jul 15, 3:00 pm)
Re: funlink() for fun!, Greg A. Woods, (Wed Jul 16, 3:05 am)
Re: funlink() for fun!, Matthias Buelow, (Mon Jul 14, 3:46 pm)
Re: funlink() for fun!, Bill Studenmund, (Tue Jul 15, 1:34 pm)
re: funlink() for fun!, matthew green, (Mon Jul 14, 11:55 pm)
re: funlink() for fun!, Bill Studenmund, (Tue Jul 15, 1:31 pm)
Re: funlink() for fun!, Greg A. Woods, (Mon Jul 14, 4:58 pm)
Re: funlink() for fun!, der Mouse, (Fri Jul 11, 4:48 pm)
Re: funlink() for fun!, Ignatios Souvatzis, (Sat Jul 12, 9:18 am)
Re: funlink() for fun!, David Laight, (Fri Jul 11, 5:36 am)
Re: funlink() for fun!, Greywolf, (Thu Jul 10, 8:31 pm)
Re: funlink() for fun!, Greg A. Woods, (Fri Jul 11, 2:38 am)
Re: funlink() for fun!, der Mouse, (Fri Jul 11, 2:43 am)
Re: fsync performance hit on 1.6.1, der Mouse, (Wed Jul 9, 3:11 am)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Wed Jul 9, 4:36 am)
Re: fsync performance hit on 1.6.1, der Mouse, (Wed Jul 9, 3:21 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Wed Jul 9, 3:56 pm)
Re: fsync performance hit on 1.6.1, der Mouse, (Wed Jul 9, 4:05 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Wed Jul 9, 4:40 pm)
Re: fsync performance hit on 1.6.1, Greywolf, (Wed Jul 9, 5:06 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Thu Jul 10, 3:06 am)
Re: fsync performance hit on 1.6.1, Kamal R Prasad, (Thu Jul 10, 3:23 am)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Thu Jul 10, 12:40 pm)
Re: fsync performance hit on 1.6.1, der Mouse, (Wed Jul 9, 4:50 pm)
Re: fsync performance hit on 1.6.1, Matthias Buelow, (Tue Jul 8, 6:32 pm)
Re: fsync performance hit on 1.6.1, Christoph Hellwig, (Wed Jul 9, 4:04 am)
Re: fsync performance hit on 1.6.1, Matthias Buelow, (Wed Jul 9, 2:43 pm)
Re: fsync performance hit on 1.6.1, Christoph Hellwig, (Wed Jul 9, 8:14 pm)
Re: fsync performance hit on 1.6.1, Matthias Buelow, (Wed Jul 9, 9:32 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Tue Jul 8, 9:59 pm)
Re: fsync performance hit on 1.6.1, Matthias Buelow, (Tue Jul 8, 10:54 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Tue Jul 8, 11:44 pm)
Re: fsync performance hit on 1.6.1, Greg A. Woods, (Mon Jul 7, 2:45 pm)
Re: fsync performance hit on 1.6.1, Chuck Silvers, (Mon Jul 7, 12:33 pm)
Re: fsync performance hit on 1.6.1, der Mouse, (Mon Jul 7, 3:53 am)
Re: fsync performance hit on 1.6.1, David Laight, (Mon Jul 7, 4:58 pm)
Re: fsync performance hit on 1.6.1, Chuck Silvers, (Mon Jul 7, 12:39 pm)
speck-geostationary