From owner-freebsd-hackers Fri Jul 19 05:33:58 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA23334 for hackers-outgoing; Fri, 19 Jul 1996 05:33:58 -0700 (PDT) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA23327 for ; Fri, 19 Jul 1996 05:33:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.5/8.6.5) with SMTP id FAA14124; Fri, 19 Jul 1996 05:33:35 -0700 (PDT) Message-Id: <199607191233.FAA14124@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: heo@cslsun10.sogang.ac.kr (Heo Sung Gwan) cc: freebsd-hackers@freebsd.org In-reply-to: Your message of "Fri, 19 Jul 1996 20:09:05 +0700." <9607191109.AA05289@cslsun10.sogang.ac.kr> From: David Greenman Reply-To: davidg@root.com Date: Fri, 19 Jul 1996 05:33:34 -0700 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I plan to modify the buffer cache to support multimedia files which are >accessed sequentially and do not have no locality of reference. Why? Is there some performance problem that you're experiancing with FreeBSD in this application that you need to work around? With FreeBSD's advanced read-ahead clustering and merged VM/buffer cache, you should achieve excellent performance without any modifications. >I want to know something about FreeBSD buffer cache implementation. > > 1) Where can I get the document about it?. No document exists (yet). > 2) Which files in kernel src directory is concerned with it? Mostly vfs_bio.c, but other components involved in file I/O are spread out over another half dozen or so files. > 3) How can I enlarge the part for buffer cache in physical memory? FreeBSD already uses all available free memory for file caching. It's really not accurate to talk about the "buffer cache" in FreeBSD since buffers no longer form the basis for file caching. File data is cached in VM objects and buffers are only used temporarily to provide the glue to the filesystems. > 4) How can user process access the file in ufs filesystem through raw disk? You can't unless you write a user-mode UFS/FFS that does it's I/O through the raw device. I couldn't imagine why you'd want to do this, however. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project