14:02:57 Is there anyone working on fenix illumos#17572 ? 14:02:58 BUG 17572: mdb should use CTF for `struct module` (In Progress) 14:02:59 ↳ https://www.illumos.org/issues/17572 14:05:16 I started looking at it a couple of weeks ago and ran into a chicken-and-egg problem with the module loading code. I need to get back to it and see what's possible. 14:06:38 The "struct module" bits added in 17467 should have been at the end of the struct it turns out :( 14:07:30 I tested mdb extensively in the post-17467 world, but not with dumps from before and vice versa. 14:09:38 Eesh. 14:10:29 I took a cursory peek, and I'm going to guess it's not as simple as merely making `kt_load_modules` aware of before-and-after the kobj.h ? 14:11:40 Ahhh... yeah, a git grep has confirmed it certainly is not. 14:12:03 Lots of places can be converted to CTF, or they're in KMDB so there's no issue. 14:12:16 That module loader is the biggest headache. 14:13:57 I'll get back to looking at it, and sorry for the inconvenience! 14:15:27 I can workaround it w/o issue, but if/when it's ready I have some test cases ready to go! 15:42:01 just to ask... i'm guessing running 'rm *' on a directory with multiple millions of files is likely to choke (by virtue of trying to glob that many files) 15:42:20 and (assuming no subdirs) 'find . | xargs -n 100 rm' or such is probably going to be a better approach... 15:43:03 "rm -rf ." ? 15:44:32 I'm pretty sure that immediately fails, or I'm misremembering some funny story about POSIX compliance 15:45:29 jbk - yes, I'd just `rm -rf && mkdir ` or `find -exec rm {} +` 15:45:57 and next time I'd likely just make it a zfs dataset with an empty snapshot - `zfs rollback @empty` 15:48:46 yeah.. there are definitely better ways to structure this... but it's what's there now 15:50:01 if nothing else, i'd imagine even though (IIRC) directories are stored as btrees on disk with zfs, it's probably still not exactly tuned for such large sizes 16:41:48 directories are ZAP objects. So it depends on the size if they are micro or fat zap objects. 17:06:35 given the number of entries, i'm going to assume it's a morbidly obese zap object 17:09:01 ;) 18:47:22 if I remember, joyent had _way too many_ files in ZFS directories 18:47:28 which is why they had to implement `ls -U` 18:47:37 someone from that era may have facts 19:04:18 it was more I believe that some customers had too many files in a zfs directory (though maybe early versions of manta didn't split things up more) 19:04:46 and since ls has to read the entire contents of the directory in order to sort them (without -U), it could consume a lot of memory 19:06:35 if ls was a bit smarter and more efficient, it might be able to mitigate _some_ of that (the entry struct it uses isn't optimal, and it could in theory in certain circumstances do things like only call stat(2) as needed and keep the results local to the call instead of stashing them, etc. 19:06:54 but it would never completely eliminate everything 21:07:08 Is there an easy way to find out "zfs get " in a kernel panic? 21:07:17 Hell, is there a hard way? 21:08:37 yes, zfs get reads properties, so you can find *prop* from stacks 21:20:29 I may be asking this wrongly. I have a kernel dump, I cannot, with existing dcmds, get "zfs get ". 21:20:52 "zfs get" reads properties, but I don't have any "zfs " programs running amongst the processes in this dump. 21:23:02 Not unless it happens to be a cached property. 21:24:15 I don't know if there are dcmds that do have a way of looking at that off hand unfortunately. 21:29:59 Me neither. Thanks. Gotta run, unfortunately. 22:51:44 if you were to implement one, that would be very nice