Re: request for testing: patch for boot loader out of mem

2018-12-18 Thread Otto Moerbeek
On Mon, Dec 17, 2018 at 10:53:26PM +0100, diego righi wrote: > Tested also the snapshot of today 2018/12/17 on same hardware but with > 500Gb disk with single big "a" partition, it works: The diff has been commited, thanks for testing. -Otto

Re: request for testing: patch for boot loader out of mem

2018-12-17 Thread diego righi
Tested also the snapshot of today 2018/12/17 on same hardware but with 500Gb disk with single big "a" partition, it works: OpenBSD 6.4-current (GENERIC.MP) #522: Mon Dec 17 11:59:44 MST 2018 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2130313216 (2031MB) ava

Re: request for testing: patch for boot loader out of mem

2018-12-15 Thread Ted Unangst
Otto Moerbeek wrote: > That would boil down to this, > > ok? ok with me

Re: request for testing: patch for boot loader out of mem

2018-12-15 Thread Otto Moerbeek
On Thu, Dec 13, 2018 at 04:26:27PM -0500, Ted Unangst wrote: > Otto Moerbeek wrote: > > int > > biosd_diskio(int rw, struct diskinfo *dip, u_int off, int nsect, void *buf) > > { > > - return biosd_io(rw, &dip->bios_info, off, nsect, buf); > > + int i, n, ret; > > + > > + /* > > +* Avo

Re: request for testing: patch for boot loader out of mem

2018-12-15 Thread Otto Moerbeek
On Fri, Dec 14, 2018 at 09:40:28PM +0100, diego righi wrote: > Two more tests on the same machine: > 1) 320Gb disk, it works: > OpenBSD 6.4-current (GENERIC.MP) #1: Thu Dec 13 03:10:57 CET 2018 > sickn...@openbsd.sick-net:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 2130313216 (2031

Re: request for testing: patch for boot loader out of mem

2018-12-14 Thread diego righi
Two more tests on the same machine: 1) 320Gb disk, it works: OpenBSD 6.4-current (GENERIC.MP) #1: Thu Dec 13 03:10:57 CET 2018 sickn...@openbsd.sick-net:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2130313216 (2031MB) avail mem = 2056515584 (1961MB) mpath0 at root scsibus0 at mpath0: 2

Re: request for testing: patch for boot loader out of mem

2018-12-13 Thread Otto Moerbeek
On Thu, Dec 13, 2018 at 09:50:13PM -0500, Nick Holland wrote: > On 12/11/18 08:09, Otto Moerbeek wrote: > > On Mon, Dec 10, 2018 at 11:44:47AM +0100, Otto Moerbeek wrote: > > > >> On Mon, Dec 10, 2018 at 08:30:10AM +0100, Otto Moerbeek wrote: > >> > >> > Hi, > >> > > >> > the bootloader uses a

Re: request for testing: patch for boot loader out of mem

2018-12-13 Thread Nick Holland
On 12/11/18 08:09, Otto Moerbeek wrote: > On Mon, Dec 10, 2018 at 11:44:47AM +0100, Otto Moerbeek wrote: > >> On Mon, Dec 10, 2018 at 08:30:10AM +0100, Otto Moerbeek wrote: >> >> > Hi, >> > >> > the bootloader uses a very simple allocator for dynamic memory. It >> > maintains a list of free allo

Re: request for testing: patch for boot loader out of mem

2018-12-13 Thread Ted Unangst
Otto Moerbeek wrote: > int > biosd_diskio(int rw, struct diskinfo *dip, u_int off, int nsect, void *buf) > { > - return biosd_io(rw, &dip->bios_info, off, nsect, buf); > + int i, n, ret; > + > + /* > + * Avoid doing too large reads, the bounce buffer used by biosd_io() > +

Re: request for testing: patch for boot loader out of mem

2018-12-12 Thread diego righi
Tried with a 250Gb disk with a big "a" partition and it works, then I will try with bigger disks as soon as I find one spare... OpenBSD 6.4-current (GENERIC.MP) #1: Thu Dec 13 03:10:57 CET 2018 sickn...@openbsd.sick-net:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2130313216 (2031MB)

Re: request for testing: patch for boot loader out of mem

2018-12-11 Thread Otto Moerbeek
On Mon, Dec 10, 2018 at 11:44:47AM +0100, Otto Moerbeek wrote: > On Mon, Dec 10, 2018 at 08:30:10AM +0100, Otto Moerbeek wrote: > > > Hi, > > > > the bootloader uses a very simple allocator for dynamic memory. It > > maintains a list of free allocations. If it needs a block, it searches > > the

Re: request for testing: patch for boot loader out of mem

2018-12-10 Thread Otto Moerbeek
On Mon, Dec 10, 2018 at 08:30:10AM +0100, Otto Moerbeek wrote: > Hi, > > the bootloader uses a very simple allocator for dynamic memory. It > maintains a list of free allocations. If it needs a block, it searches > the freelist and returns the smallest allocation that fits. > > Allocation patter

request for testing: patch for boot loader out of mem

2018-12-09 Thread Otto Moerbeek
Hi, the bootloader uses a very simple allocator for dynamic memory. It maintains a list of free allocations. If it needs a block, it searches the freelist and returns the smallest allocation that fits. Allocation patterns like this (starting with an empty freelist) alloc(big) free(big) alloc(sma