From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mingming.cao" Subject: Re: VFS hot tracking: How to calculate data temperature? Date: Fri, 02 Nov 2012 14:27:02 -0700 Message-ID: <1351891622.23963.4.camel@oc2046235844.ibm.com> References: Reply-To: cmm@us.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, linuxram@linux.vnet.ibm.com, Dave Chinner , Ben Chociej , James Northrup To: Zhi Yong Wu Return-path: Received: from e36.co.us.ibm.com ([32.97.110.154]:49285 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502Ab2KBV1K (ORCPT ); Fri, 2 Nov 2012 17:27:10 -0400 Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 2 Nov 2012 15:27:10 -0600 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id AD2161FF0043 for ; Fri, 2 Nov 2012 15:27:05 -0600 (MDT) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qA2LR7vQ167738 for ; Fri, 2 Nov 2012 15:27:07 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qA2LR6pr001949 for ; Fri, 2 Nov 2012 15:27:07 -0600 In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, 2012-11-02 at 14:38 +0800, Zhi Yong Wu wrote: > Here also has another question. > > How to save the file temperature among the umount to be able to > preserve the file tempreture after reboot? > > This above is the requirement from DB product. > I thought that we can save file temperature in its inode struct, that > is, add one new field in struct inode, then this info will be written > to disk with inode. > > Any comments or ideas are appreciated, thanks. > > Maybe could save the last file temperature with extended attributes. Just save the per-inode temperature only for now. Mingming > On Fri, Nov 2, 2012 at 12:04 PM, Zhi Yong Wu wrote: > > HI, guys > > > > VFS hot tracking currently show result as below, and it is very > > strange and not nice. > > > > inode #279, reads 0, writes 1, avg read time 18446744073709551615, > > avg write time 5251566408153596, temp 109 > > > > Do anyone know if there is one simpler but effective way to calculate > > data temperature? > > > > -- > > Regards, > > > > Zhi Yong Wu > > >