On Thu, Jul 15, 2021 at 08:48:54AM -0600, Theo de Raadt wrote:

> Otto Moerbeek <o...@drijf.net> wrote:
> 
> > On Wed, Jul 14, 2021 at 05:28:06PM -0600, Theo de Raadt wrote:
> > 
> > > The problem appears to be here:
> > > 
> > > > wdc2 at pcmcia0 function 0 "TRANSCEND, TS8GCF133, " port 0x340/16: irq 3
> > > > wd1 at wdc2 channel 0 drive 0: <TS8GCF133>
> > > > wd1: 1-sector PIO, LBA48, 7647MB, 15662304 sectors
> > > > wd1(wdc2:0:0): using BIOS timings
> > > 
> > > >   a:          1060.6M               64  4.2BSD   2048 16384     1 # /
> > > >   b:           256.0M          2172128    swap                    
> > > >   c:          7647.6M                0  unused                    
> > > >   d:          3072.0M          2696416  4.2BSD   2048 16384     1 # /usr
> > > >   e:          2048.0M          8987872  4.2BSD   2048 16384     1 # 
> > > > /home
> > > 
> > > Your swap is only 256MB.  That seem too low.  (We have walked away from
> > > making it correspond to physical memory, but still, it seems 
> > > uncomfortably low).
> > > 
> > > As well, /usr seems a bit large, leaving not much for /home.
> > > 
> > > The autoallocation scheme might have made a less than perfect decision 
> > > here.
> > > 
> > 
> > Thhis is bassed on the "medium" allocation, swap, /usr and /home have
> > reached there max according to the table. We can make swap have a
> > alrager max and take more of the pie. What would be a good max size
> > for swap these days omn such a small disk?
> 
> I suspect, but don't know, that 400MB would be enough for the link.

So how aboht this? allocate a bit more to swap and increase the max,
plus increase the max for /home.

Index: editor.c
===================================================================
RCS file: /cvs/src/sbin/disklabel/editor.c,v
retrieving revision 1.368
diff -u -p -r1.368 editor.c
--- editor.c    30 May 2021 19:02:30 -0000      1.368
+++ editor.c    16 Jul 2021 12:14:27 -0000
@@ -103,9 +103,9 @@ struct space_allocation alloc_big[] = {
 
 struct space_allocation alloc_medium[] = {
        {  MEG(800),         GIG(2),   5, "/"           },
-       {   MEG(80),       MEG(256),  10, "swap"        },
-       { MEG(1300),         GIG(3),  78, "/usr"        },
-       {  MEG(256),         GIG(2),   7, "/home"       }
+       {   MEG(80),       MEG(512),  20, "swap"        },
+       { MEG(1300),         GIG(3),  68, "/usr"        },
+       {  MEG(256),         GIG(3),   7, "/home"       }
 };
 
 struct space_allocation alloc_small[] = {


This produces:

vnd0*> p g
OpenBSD area: 0-15662305; size: 7.5G; free: 0.0G
#                size           offset  fstype [fsize bsize   cpg]
  a:             1.0G                0  4.2BSD   2048 16384     1 # /
  b:             0.5G          2172064    swap                    
  c:             7.5G                0  unused                    
  d:             3.0G          3220640  4.2BSD   2048 16384     1 # /usr
  e:             2.9G          9512096  4.2BSD   2048 16384     1 # /home


        -Otto

Reply via email to