From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 16:40:52 2004 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 B410E16A4CE for ; Tue, 9 Mar 2004 16:40:52 -0800 (PST) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3733143D39 for ; Tue, 9 Mar 2004 16:40:52 -0800 (PST) (envelope-from jlh@cox.net) Received: from gato ([68.99.4.61]) by lakemtao06.cox.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with SMTP id <20040310004052.GFGO20509.lakemtao06.cox.net@gato>; Tue, 9 Mar 2004 19:40:52 -0500 Message-ID: <0eb101c40638$6f691770$6702a8c0@gato> From: "Jeff Hinrichs" To: , References: <2514.203.177.105.170.1078831028.squirrel@bayok.msumain.edu.ph> <0e8501c4062f$6d9d2020$6702a8c0@gato> <2023.203.177.105.170.1078878187.squirrel@bayok.msumain.edu.ph> Date: Tue, 9 Mar 2004 18:41:32 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: squirrel/qmail/quota question [Success] 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: Wed, 10 Mar 2004 00:40:52 -0000 > Thanks for replying. Peter Risdon told me that earlier but I forgot to > say that i got it working. I was wondering if since that file I was > accessing was only 1M, and it took up about 10M of memory, do files for > example 2M take up about 20M of memory? Is the relation 1:10 or more? > > Im just speculating coz I want to make concrete rules for php.ini to > follow that are safe on system resources. > It really depends on the file. I am surprised that a 1.2M attachment used so much memory. When sending attachments, they are normally mime encoded, because mail doesn't like the high bits set. Anyway, I normally expect a 2x memory usage. That is 1M attachment takes 2M of space once encoded. the attachment size is always listed as the un-mimed size of the file not how much space it's taking while it's encoded. I would leave it set a 16MB and tell your MTA to reject any attachment bigger than 5MB. But that depends on the terrain. Anything bigger and they *should* be using sFTP. We can dream can't we -jeff p.s. Check out squirrelmail on and see if there are any problems with the mime functions in v1.40, a quick look see at the CVS should tell you if there is. That might be an answer to why a 1.2M file ate up over 8M of memory. http://cvs.sf.net/viewcvs.py/squirrelmail/squirrelmail/functions/mime.php?only_with_tag=SM-1_4-STABLE