Re: Total maximal size of data

2010-01-28 Thread denis
On Jan 25, 8:05 pm, Alexander Moibenko wrote: > I have a simple question to which I could not find an answer. > What is the [total maximal] size of list including size of its elements? Beware, sys.getsizeof(alist) is 4*len(alist) + a bit, regardless of alists's contents ?! See http://stackoverfl

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Well, there actually is a way of building programs that may use more than 4GB of memory on 32 machines for Linux with higmem kernels, but I guess this would not work for python. As I said, it's essentially paging: http://kerneltrap.org/node/2450 And it's not something you can just compile in

Re: Total maximal size of data

2010-01-25 Thread AlexM
On Jan 25, 3:31 pm, "Diez B. Roggisch" wrote: > Am 25.01.10 22:22, schrieb AlexM: > > > > > On Jan 25, 2:42 pm, "Diez B. Roggisch"  wrote: > >> Am 25.01.10 21:15, schrieb AlexM: > > >>> On Jan 25, 2:03 pm, "Diez B. Roggisch"    wrote: > Am 25.01.10 20:39, schrieb AlexM: > > > On Jan 25, 1

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Am 25.01.10 22:22, schrieb AlexM: On Jan 25, 2:42 pm, "Diez B. Roggisch" wrote: Am 25.01.10 21:15, schrieb AlexM: On Jan 25, 2:03 pm, "Diez B. Roggisch"wrote: Am 25.01.10 20:39, schrieb AlexM: On Jan 25, 1:23 pm, "Diez B. Roggisch" wrote: Am 25.01.10 20:05, schrieb Alexander M

Re: Total maximal size of data

2010-01-25 Thread AlexM
On Jan 25, 2:42 pm, "Diez B. Roggisch" wrote: > Am 25.01.10 21:15, schrieb AlexM: > > > > > On Jan 25, 2:03 pm, "Diez B. Roggisch"  wrote: > >> Am 25.01.10 20:39, schrieb AlexM: > > >>> On Jan 25, 1:23 pm, "Diez B. Roggisch"    wrote: > Am 25.01.10 20:05, schrieb Alexander Moibenko: > > >

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Am 25.01.10 21:49, schrieb AlexM: On Jan 25, 2:37 pm, "Alf P. Steinbach" wrote: * AlexM: On Jan 25, 2:07 pm, Terry Reedy wrote: On 1/25/2010 2:05 PM, Alexander Moibenko wrote: I have a simple question to which I could not find an answer. Because it has no finite answer What is the

Re: Total maximal size of data

2010-01-25 Thread AlexM
On Jan 25, 2:37 pm, "Alf P. Steinbach" wrote: > * AlexM: > > > > > On Jan 25, 2:07 pm, Terry Reedy wrote: > >> On 1/25/2010 2:05 PM, Alexander Moibenko wrote: > > >>> I have a simple question to which I could not find an answer. > >> Because it has no finite answer > > >>> What is the total maxim

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Am 25.01.10 21:15, schrieb AlexM: On Jan 25, 2:03 pm, "Diez B. Roggisch" wrote: Am 25.01.10 20:39, schrieb AlexM: On Jan 25, 1:23 pm, "Diez B. Roggisch"wrote: Am 25.01.10 20:05, schrieb Alexander Moibenko: I have a simple question to which I could not find an answer. What is the total

Re: Total maximal size of data

2010-01-25 Thread Alf P. Steinbach
* AlexM: On Jan 25, 2:07 pm, Terry Reedy wrote: On 1/25/2010 2:05 PM, Alexander Moibenko wrote: I have a simple question to which I could not find an answer. Because it has no finite answer What is the total maximal size of list including size of its elements? In theory, unbounded. In pra

Re: Total maximal size of data

2010-01-25 Thread AlexM
On Jan 25, 2:07 pm, Terry Reedy wrote: > On 1/25/2010 2:05 PM, Alexander Moibenko wrote: > > > I have a simple question to which I could not find an answer. > > Because it has no finite answer > > > What is the total maximal size of list including size of its elements? > > In theory, unbounded. In

Re: Total maximal size of data

2010-01-25 Thread AlexM
On Jan 25, 2:03 pm, "Diez B. Roggisch" wrote: > Am 25.01.10 20:39, schrieb AlexM: > > > On Jan 25, 1:23 pm, "Diez B. Roggisch"  wrote: > >> Am 25.01.10 20:05, schrieb Alexander Moibenko: > > >>> I have a simple question to which I could not find an answer. > >>> What is the total maximal size of l

Re: Total maximal size of data

2010-01-25 Thread Terry Reedy
On 1/25/2010 2:05 PM, Alexander Moibenko wrote: I have a simple question to which I could not find an answer. Because it has no finite answer What is the total maximal size of list including size of its elements? In theory, unbounded. In practice, limited by the memory of the interpreter.

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Am 25.01.10 20:39, schrieb AlexM: On Jan 25, 1:23 pm, "Diez B. Roggisch" wrote: Am 25.01.10 20:05, schrieb Alexander Moibenko: I have a simple question to which I could not find an answer. What is the total maximal size of list including size of its elements? I do not like to look into python

Re: Total maximal size of data

2010-01-25 Thread AlexM
On Jan 25, 1:23 pm, "Diez B. Roggisch" wrote: > Am 25.01.10 20:05, schrieb Alexander Moibenko: > > > I have a simple question to which I could not find an answer. > > What is the total maximal size of list including size of its elements? > > I do not like to look into python source. > > But it wou

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Am 25.01.10 20:05, schrieb Alexander Moibenko: I have a simple question to which I could not find an answer. What is the total maximal size of list including size of its elements? I do not like to look into python source. But it would answer that question pretty fast. Because then you'd see th

Re: Total maximal size of data

2010-01-25 Thread Diez B. Roggisch
Am 25.01.10 20:05, schrieb Alexander Moibenko: I have a simple question to which I could not find an answer. What is the total maximal size of list including size of its elements? I do not like to look into python source. But it would answer that question pretty fast. Because then you'd see th

Total maximal size of data

2010-01-25 Thread Alexander Moibenko
I have a simple question to which I could not find an answer. What is the total maximal size of list including size of its elements? I do not like to look into python source. Here is a code example: import struct KB=1024 MB=KB*KB GB=MB*KB buf=[] bs=32*KB n=4*GB/bs print "N",n i=0 size=0L while i <