Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2017 10:14:35 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Is mdconfig in FreeBSD and zRAM in linux are same?
Message-ID:  <18f2c9ee-9a7e-d4e4-8e37-1c8d0b2e1e3e@freebsd.org>
In-Reply-To: <CACzZcskmXkPMbKN%2B5vpPKrimamBQCWgKe8t7CPBZydKkMxZ6dg@mail.gmail.com>
References:  <CACzZcskmXkPMbKN%2B5vpPKrimamBQCWgKe8t7CPBZydKkMxZ6dg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-06-05 02:45, Prateek Dilip Halwe wrote:
> Hi FreeBSD Hackers,
> 
> Hope you all are doing good.
> 
> *Introduction:*
> I was looking to experiment with my machine by improving its performance by
> fastening or minimizing the page swapping from the disk.
> 
> I came across something called as zRAM <https://en.wikipedia.org/wiki/Zram>;
> in Linux, I searched the same for FreeBSD, I came across mdconfig. For more
> details on zRAM a good link is here
> <https://www.kernel.org/doc/Documentation/blockdev/zram.txt>.
> 
> *Question:*
> My question is, are zRAM and mdconfig doing the same job? Has anyone done
> some experiments with zRam on FreeBSD, in my case Is it meaningful to
> consider zram for FreeBSD, given that something like mdconfig is already
> available in FreeBSD? If so, please share some details and result.
> 
> Thanks in advance!
> 
> Thanks & Regards,
> Prateek Halwe
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
> 

mdconfig creates a memory disk, but it does not perform any compression,
so it is not really like zram.

With FreeBSD 11.1 and newer, ZFS supports 'compressed ARC', so zvol's
you create have their pages cached in ram compressed, but are still
backed by disk as well. This is not really the same thing because it
provides durability and safety that zram does not.


-- 
Allan Jude



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18f2c9ee-9a7e-d4e4-8e37-1c8d0b2e1e3e>