From owner-freebsd-hackers Tue Aug 28 9:41: 3 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tarakan-network.com (chojin.adsl.nerim.net [62.4.22.98]) by hub.freebsd.org (Postfix) with ESMTP id A94AD37B405; Tue, 28 Aug 2001 09:40:52 -0700 (PDT) (envelope-from freebsd@tarakan-network.com) Received: from chojin ([192.168.69.2]) by tarakan-network.com (8.11.6/8.11.3) with SMTP id f7SGemo93707; Tue, 28 Aug 2001 18:40:48 +0200 (CEST) (envelope-from freebsd@tarakan-network.com) Message-ID: <002f01c12fe0$3f85fd10$0245a8c0@chojin> From: "Chojin" To: "Raymond Wiker" Cc: , References: <00af01c12f17$56bc7870$0245a8c0@chojin> <15243.31859.851226.854660@raw.grenland.fast.no> Subject: Re: root is limited ? :-o Date: Tue, 28 Aug 2001 18:41:12 +0200 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.2526.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2526.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It's strange because even in LINT there are not DLFDSIZE and MAXDSIZE options. What values should I put ? Will it fix my problem ? because as I have not enough virtual memory allocated some make failed (like mysqld: virtual memory exhausted). ----- Original Message ----- From: "Raymond Wiker" To: "Chojin" Cc: ; Sent: Tuesday, August 28, 2001 1:11 PM Subject: root is limited ? :-o > Chojin writes: > > Hello, > > > > I see a strange thing: > > > > with bash (or tcsh or any other shell) when I try to modify virtual memory > > limit with ulimit by ex: > > ulimit -v unlimited (or any number). > > > > When I use limit in tcsh to change virtual memory, I can put anything, it > > doesn't modify anything. > > virtual memory (kbytes) 24576 > > > > Same thing for data size. > > > > It's strange because I've got enough memory: > > Mem: 61M Active, 270M Inact, 53M Wired, 308K Cache, 73M Buf, 241M Free > > Swap: 800M Total, 800M Free > > > > > > Anyone has got an idea ? > > I think that the virtual memory size for a process is > dependent on two other values: the data segment size and the stack > size. The maximum data segment size is determined by the MAXDSIZE (set > in the kernel config file); there is also a "default data segment size > (DFLDSIZE, also in the kernel config file). > > If your kernel has both of these set, and DLFDSIZE is less > than MAXDSIZE, you should be able to increase the data segment size > (note: it appears that you have to be root to increase the limits). At > any rate, it does not appear that you can set the virtual memory size > separately. > > I think this is unfortunate; I have applications where I > want to do anonymous mmap at fixed addresses, and these addresses must > be outside the "data segment". The total amount of vm for the > application is determined by the data segment size and stack size, and > this may be insufficient if the memory mapped segments are large. > > //Raymond. > > -- > Raymond Wiker > Raymond.Wiker@fast.no > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message