-
jbk
this is a bit into the weeds of UFS, but anyone know (or know of an easy way to tell) if changing the underlying size of the 'device' (in this case it's just a file) from < 512MiB to > 512MiB changes some internal sizing that'd result in noticably less free space for the exact same set of files?
-
jbk
we build an image by taking the size of the files going into it + 20%, but recently, mounting it, df shows almost 0% free and I noticed that the total size is a hair over 512MiB... just seemed suspicious
-
rmustacc
Maybe check what fragsize is?
-
rmustacc
And probably some of the other tuning defaults of newfs like the bytes per inode, etc.
-
sommerfeld
jbk: also the "free" parameter which by default hides up to 10% of the filesystem capacity.
-
sommerfeld
jbk: the tunables are perhaps better documented in mkfs_ufs(8); look at newfs -v output at different sizes.
-
jbk
uugh.. i really wish we didn't use semaphores in all the bio*() code
-
jbk
have a BMC that for some reason w/ the virtual CDROM, INQUIRY appears to succeed, but GET CAPACITY apparently hangs during attach, so we remain blocked forever in sema_p() in biowait()
-
jbk
while the entire device tree is locked
-
richlowe
it is hard to reason about devices that, uh, are broken as hell?
-
jbk
we're going to try it tomorrow, but I suspect fbsd and linux probably deal with it fine... my guess is either we're doing something wrong that real hardware normally overlooks but whatever virtualized USB running on the BMC does not like, or we're stricter in somewhat no one else is which is tripping up the BMC
-
jbk
just it makes it so much harder to diagnose because you can't timeout
-
jbk
(also, it appears to happen after the firmware was upgraded, which sadly doesn't appear possible to downgrade)
-
hadfl
when in doubt, always blame the BMC
-
jbk
it is the safe assumption :)
-
jbk
though annoyingly, it apparently also impacts _physical_ USB storage devices connected to the system as well
-
jbk
though I haven't had a chance to confirm if it's the exact same pathology
-
jbk
just 'it won't boot'
-
richlowe
is that reported speech? because it's always good with I/O stuff to wait out "won't boot" if you're diagnosing it
-
richlowe
sometimes it boots in ~infinite time