Re: Terrible system slowness
Hallo, On Mon, Mar 23, 2020 at 10:08:27PM -0400, Todd Gruhn wrote: >I decided to get back to running NetBSD on a new computer with a spare >drive: >Just now I ran /bin/ksh configure for lesstif. The configure operation >alone too 45min. That's not normal at all. Please post your /var/run/dmesg.boot, maybe some timer is misdetected... did the situation improve after your reinstall? >According to >swapctl -g -s this is 298GB (UGHH!) is there a nice way to trim the swap >partition? Well, swactl -d yourswapdevice edit the partition table, depending on your partitioning method swapctl -a yourswapdevice use the now-free space for something else. For details, read http://www.netbsd.org/docs/misc/index.html#swap man swap man fstab >ALSO, is there a point where adding swap to a mechanical HD becomes a >liability? >Has anyone messed with swap on a RAMDISK? There's no point doing that. Even no swap at all will work, given your RAM size, unless you want do do really big operations, and the RAM is better used directly than to copy other RAM before using it. However; (normally) the (first) swap device is used as a dump device; should the kernel crash, a core dump is written and can, at reboot, be written by savecore to /var/crash/... where it can later be analyzed. This dump device must be big enough to save all active memory (possibly compessed), so having it at least as big as your RAM is a good idea. Regards, -is
Re: Terrible system slowness
On Mon, 23 Mar 2020 22:08:27 -0400 Todd Gruhn wrote: > Any advice/ideas will be greatly appreciated. If it matters, I am > running NetBSD-9.99.x. > This is not a working/production system just yet. I can experiment, > for the moment. Have you tried the latest stable release i.e. 9.0? If you run a development snapshot you may find various issues that have not been fixed yet.
Re: Terrible system slowness
On Mon, Mar 23, 2020 at 10:08:27PM -0400, Todd Gruhn wrote: > I decided to get back to running NetBSD on a new computer with a spare > drive: > > Just now I ran /bin/ksh configure for lesstif. The configure operation > alone too 45min. > (WHY!?) I have 64GB RAM, and a 1TB SATA harddrive. > > I redid the install this time using cylinders. Swap is 39000 cyl. According > to > swapctl -g -s this is 298GB (UGHH!) is there a nice way to trim the swap > partition? > > ALSO, is there a point where adding swap to a mechanical HD becomes a > liability? > > Has anyone messed with swap on a RAMDISK? I have 64GB RAM -- thats part of > the > idea for so much RAM. How would I carve out a 32GB RAMDISK and make that > the swap > device? The idea being that a RAM-to-RAM transfer is about 10,000x as fast > as a > RAM-to-mechanical-disk transfer? > > Any advice/ideas will be greatly appreciated. If it matters, I am running > NetBSD-9.99.x. Lots of changes happened in the last few weeks in kernel land, so the 'x' here is important. If not already the case, install the most recent -current. -- Manuel Bouyer NetBSD: 26 ans d'experience feront toujours la difference --