Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2009 11:00:38 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/ufs/ffs ffs_softdep.c
Message-ID:  <200908141100.n7EB0jB4055883@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-08-14 11:00:38 UTC

  FreeBSD src repository

  Modified files:
    sys/ufs/ffs          ffs_softdep.c 
  Log:
  SVN rev 196206 on 2009-08-14 11:00:38Z by kib
  
  When a UFS node is truncated to the zero length, e.g. by explicit
  truncate(2) call, or by being removed or truncated on open, either
  new softupdate freeblks structure is allocated to track the freed
  blocks of the node, or truncation is done syncronously when too many SU
  dependencies are accumulated. The decision does not take into account
  the allocated freeblks dependencies, allowing workloads that do huge
  amount of truncations to exhaust the kernel memory.
  
  Take the number of allocated freeblks into consideration for
  softdep_slowdown().
  
  Reported by:    pluknet gmail com
  Diagnosed and tested by:        pho
  Approved by:    re (rwatson)
  MFC after:      1 month
  
  Revision  Changes    Path
  1.235     +8 -1      src/sys/ufs/ffs/ffs_softdep.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908141100.n7EB0jB4055883>