From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 15 17:16:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 113A416A4CE for ; Thu, 15 Jul 2004 17:16:12 +0000 (GMT) Received: from f7.mail.ru (f7.mail.ru [194.67.57.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 991CA43D5F for ; Thu, 15 Jul 2004 17:16:11 +0000 (GMT) (envelope-from shmukler@mail.ru) Received: from mail by f7.mail.ru with local id 1Bl9q6-000JOY-00; Thu, 15 Jul 2004 21:16:10 +0400 Received: from [24.184.137.115] by msg.mail.ru with HTTP; Thu, 15 Jul 2004 21:16:10 +0400 From: Igor Shmukler To: Avishay Traeger Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [24.184.137.115] Date: Thu, 15 Jul 2004 21:16:10 +0400 In-Reply-To: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: cc: freebsd-hackers@freebsd.org Subject: Re: Self-tuning parameters X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Shmukler List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 17:16:12 -0000 Avishay, First thing to look at - statistics gathering code in vm_pageout.c. It collects basic usage information upon which various decisions are made. Then pageout thread basically does GCing based on memory pressure. Used to be that depedning on pass number [vm_pageout(int pass)] system would either force or not force GC. Logic is that is system recovered enough pages in one pass, pressure in not too high. IS. PS I am not 100% function names are accurate, but as far as I remember that's the basic idea. -----Original Message----- From: Avishay Traeger To: freebsd-hackers@freebsd.org Date: Thu, 15 Jul 2004 12:51:22 -0400 (EDT) Subject: Self-tuning parameters > > I am currently looking into how various operating systems self-tune their > memory-related parameters (automatically adjusting parameters such as how > much memory is allocated for various caches, buffer flushing rates, etc.). > I have read a few posts indicating that FreeBSD self-tunes many of these > parameters. I was wondering if you could provide me with specific > information (or point me at source code) about where and how FreeBSD does > this. > > Thanks in advance, > Avishay Traeger > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > http://Mail.Ru - лучшая почта с неограниченным объемом почтового ящика!