From owner-freebsd-current@FreeBSD.ORG Thu Feb 17 16:15:47 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E57B16A4CE for ; Thu, 17 Feb 2005 16:15:47 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6528943D54 for ; Thu, 17 Feb 2005 16:15:46 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so328632rnf for ; Thu, 17 Feb 2005 08:15:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=ZJwadz+Ec8vL1aOJOajxpZQjpFiQQB1MrA/kTyvRNBgqQAaBOu3YG+hbesBA9MVQd3J1IM1JqHAmqAa4rYPJZVCtQx7xV88+YYOnljTRBWzxmmvmlLhQgHCvLQRkHreJLpllKWCAwFoT494Orhw9rk97YcQBksaydEwwGYIxvaY= Received: by 10.38.101.70 with SMTP id y70mr13311rnb; Thu, 17 Feb 2005 08:15:44 -0800 (PST) Received: by 10.38.209.12 with HTTP; Thu, 17 Feb 2005 08:15:44 -0800 (PST) Message-ID: <84dead72050217081540fd7640@mail.gmail.com> Date: Thu, 17 Feb 2005 16:15:44 +0000 From: Joseph Koshy To: Julian Elischer In-Reply-To: <4213D3AA.70809@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <1108584730.95661.12.camel@server.mcneil.com> <20050216201716.GA28436@odin.ac.hmc.edu> <4213B3C8.3090508@centtech.com> <1108588393.12275.9.camel@server.mcneil.com> <20050216214031.GA2787@odin.ac.hmc.edu> <4213D3AA.70809@elischer.org> cc: current@freebsd.org Subject: Re: where did all my memory go? (file system cache) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 16:15:47 -0000 > what I want is: > > int fd = open("myfile",...); > write1GBfiletodisk(fd, data); > ioctl(fd, PURGEFROMCACHE); > perform_md5(fd); > > and be sure that teh MD5 is that of what is on the disk. > not what is in RAM. unmount(file-system-of("myfile")) (even if it fails) ? -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy