Re: [pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-02 Thread Andreas Steinel
On Tue, Oct 2, 2018 at 8:10 AM Dietmar Maurer  wrote:
>
> I thought we all agreed that swap does not make sense on
> high memory system?

Very true.

I'd still suggest - as I did for many years on the forums - to install
zram. This can be done automatically and then you have some swap,
compressed memory-backed, but still swap.
Unfortunately, zram-config is still not in Debian, but the Ubuntu
package works fine. It's just some systemd config files.


-- 
With kind regards / Mit freundlichen Grüßen

Andreas Steinel
M.Sc. Visual Computing
M.Sc. Informatik
___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-02 Thread Dietmar Maurer
I thought we all agreed that swap does not make sense on
high memory system?

> On Mon, Oct 01, 2018 at 07:43:41PM +0200, Fabian Grünbichler wrote:
> > 
> > wouldn't it make more sense to create a swap partition on all boot vdevs
> > instead? if you need swap, this is very cumbersome to do after
> > installation. creating a swap zvol is easily possible no matter whether
> > the installer supports it or not..

___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-01 Thread Stoiko Ivanov
On Mon, Oct 01, 2018 at 07:43:41PM +0200, Fabian Grünbichler wrote:
> On Mon, Oct 01, 2018 at 12:41:57PM +0200, Stoiko Ivanov wrote:
> > I would propose to disable the default creation of a swap-zvol if installing
> > with zfs on root currently, since it introduces deadlocks in some 
> > circumstances.
> > 
> > Should a solution be implemented, we can revert the changes.
> > 
> > This patchset contains 4 changes:
> > * disabling the creation of a zvol for swap by default.
> > * adding a GTKEntry field to the ZFS advanced options for users, who still
> >   want a zvol with swap
> 
> wouldn't it make more sense to create a swap partition on all boot vdevs
> instead? if you need swap, this is very cumbersome to do after
> installation. creating a swap zvol is easily possible no matter whether
> the installer supports it or not..

I guess I wanted to avoid the change of partitioning before assigning a
device to a zpool (a.k.a. the "give ZFS whole drives mantra"). However AFAIS
most current howtos for Linux [0], [1] (in keeping the EFI partion separate)
and FreeBSD [2] don't seem to adhere to that (anymore).

But the point of repartitioning after the installation being cumbersome is
valid (to say the least). Currently my preference tends towards your
proposal (creating a partition for swap and not recommend creating a zvol
for swap).

This leaves the question open, whether we want to create the full requested
(or computed) swapspace on each device, or split it among all (e.g. for 32G
swap and 4 vdevs in a raidZ2, creating an 8G partition on each). Given
current disk-sizes vs. swapspace on average I'd lean towards the former.

Would prepare a v2 with Fabian's suggested changes (and creating the
complete swapspace on all devices), unless there are contradicting
suggestions/inputs.

[0] https://github.com/zfsonlinux/zfs/wiki/Ubuntu-18.04-Root-on-ZFS
[1] https://wiki.archlinux.org/index.php/Installing_Arch_Linux_on_ZFS
[2] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot
> 
> > * checking/creating ZFS swap when running in test mode as well
> > * tiny change to the test image creation (using truncate instead of dd,
> >   which makes the initial rsync while testing faster)
> > 
> > The last patch is independent of the others (but doesn't justify a thread 
> > of its
> > own IMO).
> > 
> > Stoiko Ivanov (4):
> >   no swap on zfs unless it's explicitly set
> >   add entry for swapsize to ZFS advanced widget
> >   add swapcreation to zfs testmode
> >   buildsys: use truncate to create test.img
> > 
> >  Makefile|  2 +-
> >  proxinstall | 22 --
> >  2 files changed, 21 insertions(+), 3 deletions(-)
> > 
> > -- 
> > 2.11.0
> > 
> > 
> > ___
> > pve-devel mailing list
> > pve-devel@pve.proxmox.com
> > https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 
> ___
> pve-devel mailing list
> pve-devel@pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-01 Thread Fabian Grünbichler
On Mon, Oct 01, 2018 at 12:41:57PM +0200, Stoiko Ivanov wrote:
> I would propose to disable the default creation of a swap-zvol if installing
> with zfs on root currently, since it introduces deadlocks in some 
> circumstances.
> 
> Should a solution be implemented, we can revert the changes.
> 
> This patchset contains 4 changes:
> * disabling the creation of a zvol for swap by default.
> * adding a GTKEntry field to the ZFS advanced options for users, who still
>   want a zvol with swap

wouldn't it make more sense to create a swap partition on all boot vdevs
instead? if you need swap, this is very cumbersome to do after
installation. creating a swap zvol is easily possible no matter whether
the installer supports it or not..

> * checking/creating ZFS swap when running in test mode as well
> * tiny change to the test image creation (using truncate instead of dd,
>   which makes the initial rsync while testing faster)
> 
> The last patch is independent of the others (but doesn't justify a thread of 
> its
> own IMO).
> 
> Stoiko Ivanov (4):
>   no swap on zfs unless it's explicitly set
>   add entry for swapsize to ZFS advanced widget
>   add swapcreation to zfs testmode
>   buildsys: use truncate to create test.img
> 
>  Makefile|  2 +-
>  proxinstall | 22 --
>  2 files changed, 21 insertions(+), 3 deletions(-)
> 
> -- 
> 2.11.0
> 
> 
> ___
> pve-devel mailing list
> pve-devel@pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-01 Thread Andreas Steinel
On Mon, Oct 1, 2018 at 3:53 PM Thomas Lamprecht  wrote:
> Looks good to me, I'll let it still ripe a bit on the mailing list though,
> for other possible commenters :-)

Great!

-- 
With kind regards / Mit freundlichen Grüßen

Andreas Steinel
M.Sc. Visual Computing
M.Sc. Informatik
___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


Re: [pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-01 Thread Thomas Lamprecht
On 10/1/18 12:41 PM, Stoiko Ivanov wrote:
> I would propose to disable the default creation of a swap-zvol if installing
> with zfs on root currently, since it introduces deadlocks in some 
> circumstances.
> 
> Should a solution be implemented, we can revert the changes.
> 
> This patchset contains 4 changes:
> * disabling the creation of a zvol for swap by default.
> * adding a GTKEntry field to the ZFS advanced options for users, who still
>   want a zvol with swap
> * checking/creating ZFS swap when running in test mode as well
> * tiny change to the test image creation (using truncate instead of dd,
>   which makes the initial rsync while testing faster)
> 
> The last patch is independent of the others (but doesn't justify a thread of 
> its
> own IMO).
> 
> Stoiko Ivanov (4):
>   no swap on zfs unless it's explicitly set
>   add entry for swapsize to ZFS advanced widget
>   add swapcreation to zfs testmode
>   buildsys: use truncate to create test.img
> 
>  Makefile|  2 +-
>  proxinstall | 22 --
>  2 files changed, 21 insertions(+), 3 deletions(-)
> 

Looks good to me, I'll let it still ripe a bit on the mailing list though,
for other possible commenters :-)

___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


[pve-devel] [RFC/PATCH installer 0/4] don't create swap on ZFS as default

2018-10-01 Thread Stoiko Ivanov
I would propose to disable the default creation of a swap-zvol if installing
with zfs on root currently, since it introduces deadlocks in some circumstances.

Should a solution be implemented, we can revert the changes.

This patchset contains 4 changes:
* disabling the creation of a zvol for swap by default.
* adding a GTKEntry field to the ZFS advanced options for users, who still
  want a zvol with swap
* checking/creating ZFS swap when running in test mode as well
* tiny change to the test image creation (using truncate instead of dd,
  which makes the initial rsync while testing faster)

The last patch is independent of the others (but doesn't justify a thread of its
own IMO).

Stoiko Ivanov (4):
  no swap on zfs unless it's explicitly set
  add entry for swapsize to ZFS advanced widget
  add swapcreation to zfs testmode
  buildsys: use truncate to create test.img

 Makefile|  2 +-
 proxinstall | 22 --
 2 files changed, 21 insertions(+), 3 deletions(-)

-- 
2.11.0


___
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel