Re: datasize ...

2006-08-29 Thread David Kelly
On Tue, Aug 29, 2006 at 08:01:34AM +0200, regisr wrote:
 Hello,
 
 My computer is powered by a 32 bits CPU. I want to run a progam which
 need datasize more than 3GB (may be the data should be temporary in a
 file (but I don't wrote this software ;-) .
 Does FreeBSD 6.1 can have a mechanism to do this?

Yes, you will have to tweak a few kernel values to allow more than 512M
per process. And then have enough core RAM and swap to back your data.

 Other question: If I have less memory than 3G, is it possible to put
 the limit to 3G (~2.9 G, I need to check again the posts about this
 limit) whith swaping of course. 

Consider leaving the data on disk and simplify your problem.

 May be I should buy a 64bits computer ...

Back in the days of 8 bit computers people manipulated data greater than
64k, so with a bit of thinking and planning you should be able to do
similar.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: datasize ...

2006-08-29 Thread regisr
On Tue, 29 Aug 2006 09:15:52 -0500
David Kelly [EMAIL PROTECTED] a écrit:

 Yes, you will have to tweak a few kernel values to allow more than 512M
 per process. And then have enough core RAM and swap to back your data.

But I have yet set the limit to 1.5GB! I wanted to known if the limit
to ~3G is always in effect.

 Consider leaving the data on disk and simplify your problem.

I am not the developper...

 Back in the days of 8 bit computers people manipulated data greater than
 64k, so with a bit of thinking and planning you should be able to do
 similar.

My first card was with a SC/MP processor and 2K ram, words of 4 bits
and hex keyboard ;-)  ... after a ZX80 with a very large memory
of 16K...  

All the best,
-- 
regis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: datasize ...

2006-08-29 Thread David Kelly
On Tue, Aug 29, 2006 at 07:22:12PM +0200, regisr wrote:
 On Tue, 29 Aug 2006 09:15:52 -0500
 David Kelly [EMAIL PROTECTED] a ?crit:
 
  Yes, you will have to tweak a few kernel values to allow more than 512M
  per process. And then have enough core RAM and swap to back your data.
 
 But I have yet set the limit to 1.5GB! I wanted to known if the limit
 to ~3G is always in effect.

I don't understand your 1.5 GB reference.

I think you set the kernel maximum in /boot/loader.conf and can then set
per-user limits up to that value in /etc/login.conf.

IIRC the stock unmodified kernel limit is 512 MB per process, and the
login.conf default is the same 512 MB. Login.conf can not override the
kernel. Something like this needs to be added to /boot/loader.conf:

kern.maxdsiz=3G   # think this is the absolute system per-process limit
kern.dfldsiz=3G   # think this is the default per-process limit
kern.maxssiz=128M # stack size

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: datasize ...

2006-08-29 Thread regisr
On Tue, 29 Aug 2006 14:34:23 -0500
David Kelly [EMAIL PROTECTED] a écrit:

 
  But I have yet set the limit to 1.5GB! I wanted to known if the limit
  to ~3G is always in effect.
 I don't understand your 1.5 GB reference.

I have set it in the kernel... I have run the program but it use 1300M!
As I set the maximum datasize to 1.5G it is OK for now. It is not very
optimized :-(

Thanks for your help,
-- 
regis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: datasize higher than 512Mo or 2 Gb ?

2003-02-23 Thread Lowell Gilbert
Jacques Beigbeder [EMAIL PROTECTED] writes:

 Someone said on Jan 16th:
   Adding kern.maxdsiz=2147483647 to /boot/loader.conf ...
 
 This means that now kern.maxdsiz is 2 Gb.
 
 Does FreeBSD 5.0 supports higher values? I now have a PC
 with 4 Gb of memory... and I want to use all that
 memory for a single process.
 
 Or is there some patch to raise this 2Gb limit?

You'll probably need to adjust the KVA_PAGES (which, if I recall
correctly, splits the space evenly between kernel and user space), but
there's no way you can get all the way to 4GB, because the kernel
needs *some* of it.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message