RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  j...@rpm5.org
  Module: rpm                              Date:   24-Jan-2011 16:51:04
  Branch: HEAD                             Handle: 2011012415510103

  Modified files:
    rpm                     CHANGES
    rpm/lib                 fsm.c

  Log:
    - remove fsync(2) after file install, its intolerably slow.

  Summary:
    Revision    Changes     Path
    1.3554      +1  -0      rpm/CHANGES
    2.194       +10 -0      rpm/lib/fsm.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/CHANGES
  ============================================================================
  $ cvs diff -u -r1.3553 -r1.3554 CHANGES
  --- rpm/CHANGES       24 Jan 2011 15:39:03 -0000      1.3553
  +++ rpm/CHANGES       24 Jan 2011 15:51:01 -0000      1.3554
  @@ -1,4 +1,5 @@
   5.4.0 -> 5.4.1:
  +    - jbj: remove fsync(2) after file install, its intolerably slow.
       - jbj: simplify the lookup3.c valgrind logic.
       - devzero2000: merge Suse patch. Set "%_specfile" macro in the build so 
that people can 
         do specfile manipulation/data extraction in the build.
  @@ .
  patch -p0 <<'@@ .'
  Index: rpm/lib/fsm.c
  ============================================================================
  $ cvs diff -u -r2.193 -r2.194 fsm.c
  --- rpm/lib/fsm.c     10 Dec 2009 18:52:18 -0000      2.193
  +++ rpm/lib/fsm.c     24 Jan 2011 15:51:04 -0000      2.194
  @@ -1017,7 +1017,17 @@
            (void) fsmNext(fsm, IOSM_NOTIFY);
       }
   
  +#ifdef       DYING
  +/* Measurements from installing kernel-source package:
  + * +fsync
  + *   total:               1      0.000000 MB    640.854524 secs
  + * +fdatasync
  + *   total:               1      0.000000 MB    419.983200 secs
  + * w/o fsync/fdsatasync:
  + *   total:               1      0.000000 MB     12.492918 secs
  + */
       xx = fsync(Fileno(fsm->wfd));
  +#endif
   
       if (st->st_size > 0 && (fsm->fdigest || fsm->digest)) {
        void * digest = NULL;
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                rpm-cvs@rpm5.org

Reply via email to