Re: another error with md malloc based fs



Hi Chuck,


2007/3/23, Chuck Swiger <cswiger@xxxxxxx>:

On Mar 22, 2007, at 4:17 PM, Michael Schuh wrote:
> i can't understand how malloc can eat all available
> memory, i have 2Gigs of it ;-)
> so it seems to me i know what i doing, if
> i have 1,6 Gigs free Memory, and i say ok get me 750Megs from
> my 1,6 Gigs of free Memory, what was faulty on that????

The two choices involve a swap-based RAMdisk, which can use all of
the available physical RAM it needs to, since this memory is
swappable, or a kernel-memory-based RAMdisk, which uses wired-down
memory from within the kernel.


Ok, so that is it harder to understand for me in the first time,
if i understand it now right the swap or file based memory backend
is also in the ram, but it get another way managed from kernels vm.
the malloc based ramdisk get's not reallly managed by the kvm,
but it underlays under the paging and swapping, and also
ba the "thread-killer" there shot's thread down it it get's to much
work for the system....

i hope i understand this right, it is important for me...

You shouldn't or can't create huge kernel-based RAMdisks without
expanding the amount of KVM available to the kernel...it's not
reasonable to wire down hundreds of MB or RAM in almost all situations.

> i hope it gave another way to use such ram-disk without using
> swap or other harddisk based backend....otoh my ram is not fully
> useful
> for me and i must, after twelve years of using freebsd, looking
> back to
> linux, and that i never would, only for using ramdisks....

If you wanted to create a 10MB RAMdisk, using kernel-based memory
would be fine.

For things which are much larger than that, the kernel's global VM
management is using techniques like page-fault frequency heuristics
and will do a better job of keeping active stuff cached in RAM
(regardless of whether the stuff is part of a running process or part
of your RAMdisk filesystem), if you let the kernel manage the
situation than if you try to configure hundreds of MB which can only
be used for a RAMdisk.

Anyway, if you want to use Linux instead, nobody here is going to try
to persuade you to do otherwise. Have fun,


nop, i don't runaway, i don't disappear to run over to "dead rats" :-D
i will stick to FreeBSD, than i believe it gave no better OS for me :-D
i have many fun with my "lovely" BSD.....
at this time it gave only one situation in that i use linux and i hope this
changes i the near future (VMWare....:-( )

thanks for helping to see things a little bit more clear....

regards

michael

--
-Chuck




--
=== michael-schuh.net ===
Michael Schuh
Preußenstr. 13
66111 Saarbrücken
phone: 0681/8319664
mobil: 0177/9738644
@: michael.schuh@xxxxxxxxx

=== Ust-ID: DE251072318 ===
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [PATCH 2.6.24] mm: BadRAM support for broken memory
    ... This is the latest version of the BadRAM patch, ... run Linux on broken memory. ... a new kernel appeared, ... the BadRAM subsystem dealing with statically challanged RAM modules. ...
    (Linux-Kernel)
  • Re: Patch 4/6 randomize the stack pointer
    ... > it," so perhaps this would be a good compromise. ... less than 512M of memory to keep track of. ... what about the case where you have gobs of RAM and need a highmem ... Kernel data structures, no. ...
    (Linux-Kernel)
  • Re: Allocating kernel memory
    ... > I never complained about the real memory that was used but pointed out ... > that a large portion of the kernel virtual address space is used up. ... RAM you should avoid PAE, ... But it was limited to 1GB of physical RAM. ...
    (comp.os.linux.development.system)
  • Re: Newbie Setting up xserver
    ... Could be, but now that I know that low memory is causing the problem, I will ... The kernel gobbles up the rest of the physical memory huh. ... Actually my RAM is split into two ... >it could be that some of the processes related to setting the timezone ...
    (comp.os.linux.setup)
  • Re: OS-question
    ... MacOS X supports>4GB of RAM on IA32 and so does FreeBSD but I don't know ... Linux can use up to 64 Gigabytes of physical memory on x86 systems. ... If you are compiling a kernel which will never run on a machine with ...
    (comp.arch)