Re: HAVE_MMAP still necessary ?

2009-01-01 Thread MP
 I believe the idea is to be able to view parts of huge file without
 loading them to RAM first. (for really big files, they may not even
 fit in RAM.)

Some really big files won't fit even in virtual memory. For example on
32bit architectures (like commonly used i386) you have 2gb usable
virtul memory for each process (rest 2 gb is reserverd for
kernelspace). Since some part of the 2gb space is already occupied by
libraries, etc, you usually can get perhaps 1 gb of virtual memory in
which you can mmap things (since the virtual memory range in which you
will mmap the file have to be contiguous). And files larger than 4 Gb
are quite common (large archives, apache logs from busy servers, etc
...). So mmap may be unavailable at compile time (due to platform
issues ...) or at runtime (if you request block too large)

We could have some get that file into memory call, that will try to
use mmap if possible and store pointer to freeing the block (that
would call munmap, free or some other method depending on how the
block was acquired)

But we need to cope with situations, where the file won't fit in RAM
and won't fit in virtual memory either. For example 8gb file on i386
architecture with 2 gb of ram.

Martin Petricek
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: automatic symlink maintenance [WAS: Removing myself from the project]

2009-01-01 Thread Janek Kozicki
Enrico Weigelt said: (by the date of Fri, 26 Dec 2008 02:47:33 +0100)

 * Janek Kozicki janek_li...@wp.pl schrieb:
 
  Would you be so kind to consider my feature request?
  
http://mail.gnome.org/archives/mc-devel/2008-November/msg3.html
 
 IMHO, such a feature clearly doesn't belong into mc itself - it's 
 a filesystem issue ;-P

You are right! Thanks, it never occurred to me. I'm going to ask ext3
developers about that.

-- 
Janek Kozicki |
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: Happy New Year

2009-01-01 Thread Janek Kozicki
Slava Zanko said: (by the date of Wed, 31 Dec 2008 11:58:35 +0200)

 Happy New Year, have enough money and happiness to you and your family.

aww, man. Thanks. I'm as happy with my wife and three daughters that
I had never imagined I would be.
Now if only I could get some (more) money

-- 
Janek Kozicki |
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel