From owner-soc-status@FreeBSD.ORG Mon Jun 28 21:54:50 2010 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE5A01065673 for ; Mon, 28 Jun 2010 21:54:50 +0000 (UTC) (envelope-from gleb.kurtsou@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3C2B28FC18 for ; Mon, 28 Jun 2010 21:54:49 +0000 (UTC) Received: by wyb34 with SMTP id 34so1551002wyb.13 for ; Mon, 28 Jun 2010 14:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=0+XCR+CYbZti/rNzwCC9Rao4sufijeIlQninlPM+UKs=; b=hjswW/Dk53iiVcZpzhYWt+wcQbW26ZMY4MggZzsXRq5gnMnMX9CRr8Gjm2Xmp7tQiR KxifASwON+9FVijSxKufdEZjtHbBNkkjSQw4DTGEqyWQaGidtiG5gE3MF9m4TQKHjfOd eS5E+p74ArOTl5B8R5C2zgSp8LFAaI+Q+OOwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=Tlvt450VrRvXNDyUbHvj4Fb5JLLMcuUkDboBC7+RP3jNRG4XKqQQyArv+EgzmJnPBA yV3emKHCF9E4acq3hrNY79ppxQ/nXfwURBpgh9OJW3pKtgnbyZUnJcN8vJBfErwoZzw3 0mkGuqkr2L4IXFGHJvFPD0ncDx8xNrU7MGRK8= Received: by 10.216.184.137 with SMTP id s9mr8691009wem.68.1277762081961; Mon, 28 Jun 2010 14:54:41 -0700 (PDT) Received: from localhost (lan-78-157-90-54.vln.skynet.lt [78.157.90.54]) by mx.google.com with ESMTPS id g17sm4849765wee.29.2010.06.28.14.54.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 14:54:41 -0700 (PDT) Date: Tue, 29 Jun 2010 00:54:38 +0300 From: Gleb Kurtsou To: soc-status@freebsd.org Message-ID: <20100628215437.GA4504@tops.skynet.lt> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Konstantin Belousov Subject: namecache status report #4 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 21:54:50 -0000 Last week I've replaced cache entry reference counting with hold and use counting. So it's now possible to free individual unused entries, but not only entire directories at once. Because of locking protocol, ie necessity of locking child entry while holding parent lock, entries are not immediately freed but placed on 'invalid' list. Household thread is to free invalid entries and keep number of unused entries at desired level. I've also fixed number of reference counting and locking bugs, fixed memory leak on unmount, implemented per cpu statistics. Thanks, Gleb.