From owner-freebsd-questions@FreeBSD.ORG Fri May 30 01:04:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31A9137B401 for ; Fri, 30 May 2003 01:04:08 -0700 (PDT) Received: from herald.cc.purdue.edu (herald.cc.purdue.edu [128.210.11.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DD9243F75 for ; Fri, 30 May 2003 01:04:07 -0700 (PDT) (envelope-from foob@purdue.edu) Received: from herald.cc.purdue.edu (localhost [127.0.0.1]) h4U846nc014314 for ; Fri, 30 May 2003 03:04:06 -0500 (EST) Received: from localhost (foob@localhost)h4U845gJ014290 for ; Fri, 30 May 2003 03:04:05 -0500 (EST) X-Authentication-Warning: herald.cc.purdue.edu: foob owned process doing -bs Date: Fri, 30 May 2003 03:04:05 -0500 (EST) From: Bingrui Foo X-X-Sender: foob@herald.cc.purdue.edu To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: About reading and writing to files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 08:04:08 -0000 Hi, I'm wondering in freeBSD, if I have a directory with 10,000 files, or maybe even 100,000 files, each about 5 kb long. Wondering will reading and writing to any one of these files in C be affected by the sheer number of these files? Will the access time be affected significantly? Just wondering because not sure whether I should put these data in a database or just use files with unique names. Also will separating the files into many directories help? Thanks. Foo