mdconfig using malloc()

Nikos Vassiliadis nvass at teledomenet.gr
Fri Jun 29 07:14:43 UTC 2007


On Friday 29 June 2007 03:01, Shawn O'Connor wrote:
> >> I saw some old post advocated using -t swap instead, saying that swap
> >> probably wouldn't be used until real memory was consumed. But, on my
> >> 6.2 machine that immediately raises the swap usage to 2GB and does
> >> use disk instead of RAM when I test using it.
> >
> > That's because you used -o reserve. Leave it out and it'll be fine.
>
> When using with -o reserve and swap it returns immediately, just like
> with -t malloc without the -o reserve (except without the nasty
> repercussions of running out of RAM).  My problem isn't that it uses
> the swap (nothing is using it anyway), but that it is using disk at
> all, which is way to slow for what I'm trying to do.

Why do you even have swap? Is it for kernel dumps?
Why don't you simply eliminate the swap device?



But, as Pieter also suggested, I believe tmpfs would be much more
efficient in every regard. Perhaps not stability-wise, though the
code is new in the FreeBSD src tree, it has been in the NetBSD src
tree since right after SoC2005.

Nikos


More information about the freebsd-questions mailing list