Re: chmod a mfs /tmp

2022-05-04 Thread Otto Moerbeek
On Wed, May 04, 2022 at 08:35:50PM +0300, Mihai Popescu wrote: > Hello, > > I want to map /tmp as a mfs type. I did this in my /etc/fstab: > > 0a4b310a4a014e04.b none swap sw > 0a4b310a4a014e04.a / ffs rw 1 1 > 0a4b310a4a014e04.l /home ffs rw,nodev,nosuid 1 2 > swap /tmp mfs

Re: Auto layout for disk partitions - a new user's perspective

2022-04-18 Thread Otto Moerbeek
On Mon, Apr 18, 2022 at 04:15:46PM +, James Mintram wrote: > Thanks for all of the very useful replies, I have managed to get > everything working. > > For context, I need erlang 24 + elixir 13 and the current packages > are older than that. Which is why I have found myself working > with

Re: Github/Bitbucket free alternative

2022-04-03 Thread Otto Moerbeek
On Mon, Apr 04, 2022 at 01:07:49PM +0800, Tito Mari Francis Escaño wrote: > Hi everyone, > I'm trying to develop web apps on OpenBSD but Github and even Bitbucket > seems to think that only Windows and/or Linux are the platforms so I feel > forced to use VS Code that runs only on those systems. >

Re: Why is disk full?

2022-03-29 Thread Otto Moerbeek
source disk. Sparse files contain blocks of all zeroes that are not stored as data blocks. I think by default rsync does not (re)create those as sparse (see rsync option -S). -Otto > > On Tue, Mar 29, 2022 at 11:07 AM Otto Moerbeek wrote: > > > On Tue, Mar 29, 2022 at 10

Re: Why is disk full?

2022-03-29 Thread Otto Moerbeek
rsync to copy files. df -i reports 483707 inodes used for both > > partitions. > > sudo rsync -anv --delete /mnt/wd1l/ /mnt/wd2l/ > > reports no changes required (runtime under 3 minutes). > > sudo diff -r /mnt/wd1l/ /mnt/wd2l/ > > reports no difference (runtime 10 h

Re: Why is disk full?

2022-03-29 Thread Otto Moerbeek
On Tue, Mar 29, 2022 at 10:25:34AM -0400, F Bax wrote: > I copied all files from /mnt/wd1l to /mnt/wd2l > > wd2l is slightly larger than wd1l; yet wd2l is full! > > $ df -h /mnt/wd1l /mnt/wd2l > Filesystem Size Used Avail Capacity Mounted on > /dev/wd1l 1020G 952G 16.5G 98% /mnt/wd1l >

Re: Please put vi in base

2022-03-13 Thread Otto Moerbeek
On Sat, Mar 12, 2022 at 10:37:51PM +0100, i...@tutanota.com wrote: > > Here's just the book for you: > > Michael W. Lucas, Ed Mastery > > https://mwl.io/nonfiction/tools#ed > > I already have that book, which is why I KNOW I will never want to use > ed :) It takes less than half an hour to

Re: PF bi-nat

2022-02-24 Thread Otto Moerbeek
On Thu, Feb 24, 2022 at 02:14:55PM +, Laura Smith wrote: > Thanks David for your comprehesive reply. It looks like perhaps the match > trick is the cleanest way. BTW, IMO the descriptin and example in the man page of pf.conf is more clear than the FAQ. -Otto > > > ---

Re: is IPC on OpenBSD different from other UNIX-like OSes?

2022-02-20 Thread Otto Moerbeek
On Sun, Feb 20, 2022 at 03:44:37PM -0300, Alceu Rodrigues de Freitas Junior wrote: > > Hello there, > > I've being doing Perl development on OpenBSD for a while now, and one thing > that I usually note is that is takes a noticeable difference of time to > execute Perl modules instalation on

Re: unwind problems e.g. validation failure ... while building chain of trust

2022-02-19 Thread Otto Moerbeek
On Sat, Feb 19, 2022 at 07:35:43PM +0100, Why 42? The lists account. wrote: > > Hi All, > > I thought I would try running unwind on my desktop at home. Reading the > manual page, it doesn't seem to require any specific configuration, so I > started it via rcctl and everything seemed to work as

Re: Fsck_ffs seems to have trashed /usr/local

2022-02-11 Thread Otto Moerbeek
On Fri, Feb 11, 2022 at 10:09:25PM +0100, Konrad Sowula wrote: > Hello, > to keep things short, rebooting my vps using 'Server restart' in vultr > control panel trashed my /usr/local directory (or at least i suppose > that's all that has been damaged, haven't noticed any changes to > config

Re: has the definition of 'nice' changed?

2022-01-29 Thread Otto Moerbeek
rs that > > processes with 'nice 20' are given more favorable scheduling than those > > with 'nice 10', which is exactly the opposite of what I'd expect [[...]] > > In <https://marc.info/?l=openbsd-misc=164214220808789=1>, > Otto Moerbeek replied > > Are you

Re: MAKEDEV not creating ttyU devices that have unit numbers beyond 9

2022-01-17 Thread Otto Moerbeek
On Tue, Jan 18, 2022 at 10:42:15AM +0300, Kihaguru Gathura wrote: > Hi > > Connecting a couple of modems but unable to make devices beyond cuaU9 > > root# sh /dev/MAKEDEV ttyU10 > ttyU10: unknown device > root# sh /dev/MAKEDEV ttyU11 > ttyU11: unknown device > root# sh /dev/MAKEDEV ttyU12 >

Re: has the definition of 'nice' changed?

2022-01-13 Thread Otto Moerbeek
On Thu, Jan 13, 2022 at 06:17:54PM -0800, Jonathan Thornburg wrote: > I've just noticed something odd about the scheduling of processes with > varying 'nice' values (7.0-stable/amd64, GENERIC.MP): it appears that > processes with 'nice 20' are given more favorable scheduling than those > with

Re: dd and mbr

2022-01-10 Thread Otto Moerbeek
On Mon, Jan 10, 2022 at 07:35:51PM +, Roderick wrote: > > I thought > > dd if=/dev/zero of=/dev/rwd1 bs=1m > > would delete the mbr. But I still see the partition table > with fdisk. > > Any explanation? > > Rod. > You just created a file in /dev named rwd1. There is no device called

Re: controlling terminal - to have and have not

2022-01-07 Thread Otto Moerbeek
On Fri, Jan 07, 2022 at 05:08:16PM +0100, Jan Stary wrote: > This is how ps(1) differentiates between displaying > processes that have a terminal and those that have not: > > -a Display information about processes > for all users with controlling terminals. > > -x Display

Re: ntpd constraints configured but none available

2021-12-26 Thread Otto Moerbeek
On Sun, Dec 26, 2021 at 11:16:20AM +0100, Damien Thiriet wrote: > Hi, > > On Sat, Dec 25, 2021 at 03:40:24PM +0100, Otto Moerbeek wrote: > > > > Are you blocking outging https requests? > > > > -Otto > > > > > > Thanks for your answer.

Re: ntpd constraints configured but none available

2021-12-25 Thread Otto Moerbeek
On Sat, Dec 25, 2021 at 11:47:21AM +0100, Damien Thiriet wrote: > Hi misc@, > > > I discovered today that date output had some 12h20' lap. > I began to read my messages log and found those outputs > > valencay:log $grep ntp messages > Dec 22 19:56:40 valencay ntpd[49705]: constraints

Re: Memory protection and the push instruction (amd64)

2021-12-05 Thread Otto Moerbeek
On Mon, Dec 06, 2021 at 05:59:41AM +, slembcke wrote: > So this is a fairly esoteric question, and I expect the answer might > be just as esoteric. > > I have a little toy fiber/stackless coroutine library that I made a > few years ago and have been using in some of my hobby projects. >

Re: how to recover a corrupted disk

2021-12-01 Thread Otto Moerbeek
On Wed, Dec 01, 2021 at 05:49:06PM +0530, Sandeep Gupta wrote: > Not sure why not. It seems the rsd1c is where the superblock is. Also Each filesystem has it's own superblock, residing at the start of its partition. c partitions are a way to refer to the whole disk and do not have a

Re: odd bc -l output

2021-11-29 Thread Otto Moerbeek
On Tue, Nov 30, 2021 at 08:38:27AM +0100, Peter J. Philipp wrote: > In fact it's not just bc -l, but also when I calculate the following in C > (linked with -lm) > > C = (180.0 - A) - B; > a = (double)(c / sin(C)) * sin(A); > b = (double)(c /

Re: Supported 4K video cards

2021-11-24 Thread Otto Moerbeek
On Wed, Nov 24, 2021 at 01:06:16PM -0500, Allan Streib wrote: > Recently a 4K monitor became available at work, it appears to support > 3840x2160 at 60Hz only. My video card (ATI Radeon HD 5870) will do that > but only at 30Hz. Anyone know of a supported card that will do 3840x2160 > 60Hz on

Re: X.org segmentation fault - snapshot amd64

2021-11-14 Thread Otto Moerbeek
On Sat, Nov 13, 2021 at 06:31:24PM -0800, ariel a wrote: Please repoprt bugs on bugs@ instead of on misc@, not all developers read misc@ -Otto

Re: clang performance bug is worse on openbsd than freebsd

2021-11-07 Thread Otto Moerbeek
On Sun, Nov 07, 2021 at 08:13:36PM -0600, Luke Small wrote: > https://bugs.llvm.org/show_bug.cgi?id=50026 > > I reported it to the llvm people. it is two slightly different quicksort > algorithms which perform radically differently. The one which you could > assume would take more time, performs

Re: Installation partitioning: core dump and /var size

2021-11-05 Thread Otto Moerbeek
On Fri, Nov 05, 2021 at 11:15:13AM +0200, u...@mailo.com wrote: > Also asked on: > https://unix.stackexchange.com/questions/676245/openbsd-core-dump-and-var-size > > I'm trying to figure out my partitioning which leads to > https://man.openbsd.org/disklabel#AUTOMATIC_DISK_ALLOCATION > which

Re: mmap with the arguments PROT_NONE and MAP_STACK

2021-11-04 Thread Otto Moerbeek
On Thu, Nov 04, 2021 at 07:13:35AM +0100, overcq wrote: > Theo de Raadt wrote: > > > overcq wrote: > >>> I don't know how much stack each task will need, and I reserve all tasks > >> equally from all available memory. When a new task is created, > >> I take away the top of the stack from

Re: use pfctl to reread /etc/mail/spamd-white table

2021-10-28 Thread Otto Moerbeek
On Thu, Oct 28, 2021 at 12:15:45PM +0200, Jan Stary wrote: > On Oct 28 11:55:33, harald.dun...@aixigo.com wrote: > > Hi folks, > > > > my pf.conf contains > > > > table persist file "/etc/mail/spamd-white" > > > > I understand that I can add and delete hosts from the table manually >

Re: use pfctl to reread /etc/mail/spamd-white table

2021-10-28 Thread Otto Moerbeek
On Thu, Oct 28, 2021 at 11:55:33AM +0200, Harald Dunkel wrote: > Hi folks, > > my pf.conf contains > > table persist file "/etc/mail/spamd-white" > > I understand that I can add and delete hosts from the table manually > later, but on very large tables this is pretty painful. There

Re: NSD exit status 11 on 7.0

2021-10-19 Thread Otto Moerbeek
On Wed, Oct 20, 2021 at 07:47:30AM +0200, Mischa wrote: > On 2021-10-20 07:30, Otto Moerbeek wrote: > > On Tue, Oct 19, 2021 at 09:47:22PM +0200, Martijn van Duren wrote: > > > On Tue, 2021-10-19 at 19:56 +0200, Otto Moerbeek wrote: > > > > On Tue, Oct 19, 2021 at

Re: NSD exit status 11 on 7.0

2021-10-19 Thread Otto Moerbeek
On Tue, Oct 19, 2021 at 09:47:22PM +0200, Martijn van Duren wrote: > On Tue, 2021-10-19 at 19:56 +0200, Otto Moerbeek wrote: > > On Tue, Oct 19, 2021 at 07:49:15PM +0200, Mischa wrote: > > > > > On 2021-10-15 20:05, Otto Moerbeek wrote: > > > > On Fri, Oct

Re: NSD exit status 11 on 7.0

2021-10-19 Thread Otto Moerbeek
On Tue, Oct 19, 2021 at 07:49:15PM +0200, Mischa wrote: > On 2021-10-15 20:05, Otto Moerbeek wrote: > > On Fri, Oct 15, 2021 at 07:47:22PM +0200, Mischa wrote: > > > On 2021-10-15 19:42, Otto Moerbeek wrote: > > > > On Fri, Oct 15, 2021 at 07:16:55PM +0200, Mischa wr

Re: sysupgrade fails due to "CHECK AND RESET DATE" ?

2021-10-19 Thread Otto Moerbeek
On Tue, Oct 19, 2021 at 09:30:47AM +0300, kasak wrote: > > 19.10.2021 08:45, Otto Moerbeek пишет: > > On Mon, Oct 18, 2021 at 11:18:20PM +0300, kasak wrote: > > > > > Hello everyone! > > > > > > I have one mini router, made from gigabyte GB-S

Re: sysupgrade fails due to "CHECK AND RESET DATE" ?

2021-10-18 Thread Otto Moerbeek
On Mon, Oct 18, 2021 at 11:18:20PM +0300, kasak wrote: > Hello everyone! > > I have one mini router, made from gigabyte GB-SBCAP4200 barebone > > It has nothing special. Just base openbsd, without any additional packages > and modifications. > > for some reason, sysupgrade does not upgrade

Re: NSD exit status 11 on 7.0

2021-10-15 Thread Otto Moerbeek
On Fri, Oct 15, 2021 at 07:47:22PM +0200, Mischa wrote: > > > On 2021-10-15 19:42, Otto Moerbeek wrote: > > On Fri, Oct 15, 2021 at 07:16:55PM +0200, Mischa wrote: > > > > > On 2021-10-15 18:27, Otto Moerbeek wrote: > > > > > > > > The a

Re: NSD exit status 11 on 7.0

2021-10-15 Thread Otto Moerbeek
On Fri, Oct 15, 2021 at 07:16:55PM +0200, Mischa wrote: > On 2021-10-15 18:27, Otto Moerbeek wrote: > > > > The actual problem (SIGSEGV) happens in the child processes: ktrace the > > children as well: ktrace -di ... > > > > -Otto > > Thanx Otto. &

Re: NSD exit status 11 on 7.0

2021-10-15 Thread Otto Moerbeek
On Fri, Oct 15, 2021 at 06:18:12PM +0200, Mischa wrote: > Hi All, > > Thank you all very much for OpenBSD 7.0! > All upgrades went as smooth as always. > > However when I upgraded my DNS VMs, NSD keeps exiting with status 11. > Unfortunately even in debug mode with -V4-9 it only gives me the

Re: pkg_add still reporting incorrect actions

2021-10-10 Thread Otto Moerbeek
On Sun, Oct 10, 2021 at 11:09:58AM +0300, Mihai Popescu wrote: > On Sat, Oct 9, 2021 at 11:55 PM Chris Bennett < > cpb_m...@bennettconstruction.us> wrote: > > > On Sat, Oct 09, 2021 at 09:53:46PM +0300, Mihai Popescu wrote: > > > I am running amd64-current from snapshots. I am installing a lot

Re: Can't figure out what's taking up space on /

2021-08-09 Thread Otto Moerbeek
On Mon, Aug 09, 2021 at 09:51:39AM +0200, Harald Dunkel wrote: > On 8/5/21 11:13 AM, Bastien Durel wrote: > > > > Since then, I put the mount points directories immutable (before mount) > > > > fremen# mkdir /tmp/foo > > fremen# chflags schg /tmp/foo > > fremen# touch /tmp/foo/bar > > touch:

Re: Can't figure out what's taking up space on /

2021-08-04 Thread Otto Moerbeek
g open files that are unlinked for sure. -Otto > > > > On Tue, Aug 3, 2021 at 10:40 PM Otto Moerbeek wrote: > > > On Tue, Aug 03, 2021 at 12:39:54PM -0700, Greg Thomas wrote: > > > > > I'm definitely suffering from filesystem corruption

Re: Can't figure out what's taking up space on /

2021-08-03 Thread Otto Moerbeek
On Tue, Aug 03, 2021 at 12:39:54PM -0700, Greg Thomas wrote: > I'm definitely suffering from filesystem corruption on root. I had > rebooted last night with no change. > > I have no options for mounting root. > > grits# cat /etc/fstab > 16a27b4b4549ce04.b none swap sw > 16a27b4b4549ce04.a /

Re: MALLOC_STATS [was: Clang sanitizer support]

2021-07-23 Thread Otto Moerbeek
On Fri, Jul 23, 2021 at 11:54:38AM -0500, Joe Nelson wrote: > Otto Moerbeek wrote: > > yeah, MALLOC_STATS is not well maintained... > > What's the relation between the MALLOC_STATS code currently in -stable, > and the code in your mdump [0] project? Are you experimentin

Re: MALLOC_STATS [was: Clang sanitizer support]

2021-07-23 Thread Otto Moerbeek
I'll take care. Joe Nelson schreef op 23 juli 2021 18:36:04 CEST: >Omar Polo wrote: >> not tried, but compiles :) > >Your patch made it compile for me too. With that change I was able to >run through the steps in https://www.drijf.net/malloc/ and detect >memory >leaks! Thank you. > >What's the

Re: MALLOC_STATS [was: Clang sanitizer support]

2021-07-23 Thread Otto Moerbeek
On Fri, Jul 23, 2021 at 06:02:08PM +0200, Omar Polo wrote: > > Joe Nelson writes: > > > Omar Polo wrote: > >> There's a built-in mechanisms to check for memory leaks: > >> > >>https://www.drijf.net/malloc/ > >> > >> don't know if it still applies, I tried only once and was like a couple

Re: UART / serial device on Raspberry Pi

2021-07-22 Thread Otto Moerbeek
On Thu, Jul 22, 2021 at 01:23:15PM +0200, Sven Seeberg wrote: > Hi all, > > I'm trying to communicate between a Raspberry Pi (3B, 3B+, 4B) on > OpenBSD 6.9 and an Arduino with the built in (GPIO) serial interface. > With the Raspi 3B version, the serial interface definitely seems to be > work. I

Re: Should 80MB of RAM be enough for kernel relinking on i386?

2021-07-16 Thread Otto Moerbeek
On Thu, Jul 15, 2021 at 08:48:54AM -0600, Theo de Raadt wrote: > Otto Moerbeek 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

Re: Should 80MB of RAM be enough for kernel relinking on i386?

2021-07-15 Thread Otto Moerbeek
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: > > wd1: 1-sector PIO, LBA48, 7647MB, 15662304 sectors > > wd1(wdc2:0:0): using BIOS

Re: disklabel partition auto allocation problem

2021-06-10 Thread Otto Moerbeek
On Wed, Jun 09, 2021 at 12:40:13PM -0400, electronmuontau neutrino wrote: > disklabel in OpenBSD 6.9 doesn't seem to be allocating partition sizes > correctly according to the actual size of my OpenBSD partition. I dual > booted my ThinkPad X1 Carbon 5th gen laptop with Windows 10 and OpenBSD.

Re: Pf tables and ruleset optimizations

2021-05-31 Thread Otto Moerbeek
On Mon, May 31, 2021 at 10:32:56AM +0200, Heinrich Rebehn wrote: > Hi list, > > My /etc/pf.conf contains a table which is initialized from a file: > > table file "/root/pf/tables/myservers” > > This table ist not referred to in pf.conf, but in an anchor which is loaded > later on. > I

Re: .profile not being loaded (ksh) when opening shell in X

2021-04-27 Thread Otto Moerbeek
On Tue, Apr 27, 2021 at 12:19:36PM +, tetrahe...@danwin1210.me wrote: > On Tue, Apr 27, 2021 at 09:37:05AM +0200, Alexandre Ratchov wrote: > > If you're using a display manager (xenodm or whatever), you've to > > include your .profile in your session login script (X equivalent of > > shell's

Re: default Offset to 1MB boundaries for improved SSD (and Raid Virtual Disk) partition alignment

2021-04-21 Thread Otto Moerbeek
prove performance > in Virtualized Environments with large allocation units on what ever storage > subsystem they are running. > > Thanks for your time > > Tom Smyth > > > > > On Wed, 21 Apr 2021 at 08:49, Otto Moerbeek wrote: > > > > On Wed, Apr 21, 202

Re: default Offset to 1MB boundaries for improved SSD (and Raid Virtual Disk) partition alignment

2021-04-21 Thread Otto Moerbeek
On Wed, Apr 21, 2021 at 08:20:10AM +0100, Tom Smyth wrote: > Hi Christian, > > if you were to have a 1MB file or a database that needed to read 1MB > of data, i > f the partitions are not aligned then > your underlying storage system need to load 2 chunks or write 2 > chunks for 1 MB of data,

Re: Another potential awk or xargs bug?

2021-04-16 Thread Otto Moerbeek
On Fri, Apr 16, 2021 at 02:26:27AM -0700, Jordan Geoghegan wrote: > > > On 4/15/21 7:49 AM, Otto Moerbeek wrote: > > On Thu, Apr 15, 2021 at 04:29:17PM +0200, Christian Weisgerber wrote: > > > >> Jordan Geoghegan: > >> > >>> --- /tmp/bad.tx

Re: Another potential awk or xargs bug?

2021-04-15 Thread Otto Moerbeek
On Thu, Apr 15, 2021 at 04:29:17PM +0200, Christian Weisgerber wrote: > Jordan Geoghegan: > > > --- /tmp/bad.txt  Wed Apr 14 21:06:51 2021 > > +++ /tmp/good.txt  Wed Apr 14 21:06:41 2021 > > I'll note that no characters have been lost between the two files. > Only the order is different. > > >

Re: Last shutdown date of old OpenBSD machine

2021-04-15 Thread Otto Moerbeek
On Thu, Apr 15, 2021 at 11:42:14AM +0200, Ales Tepina wrote: > Hi! > > I have a really old machine (it has DIN keyboard connector) with OpenBSD > installed on it that was used as a router and its been sitting > in the basement for quite a few years. I would like to find out the date > when

Re: Non-default partitions and upgrades

2021-04-12 Thread Otto Moerbeek
On Mon, Apr 12, 2021 at 08:08:12PM -0700, Paul Pace wrote: > Hello! > > I generally try and run things as a project recommends, but I am wondering > about running different additional partitions (e.g., add /var/www) or > changing partition letter (e.g., move /var to the end for convenient VPS >

Re: Go programs only using one CPU core

2021-03-27 Thread Otto Moerbeek
On Sat, Mar 27, 2021 at 06:44:52PM +1100, john slee wrote: > Hi, > > > On 2021-03-26, Richard Ulmer wrote: > > > The `go` directive starts a new goroutine, which I would expect to be > > > put into it's own process here. However, using htop(1) I can see, that > > > only one of my two cores gets

Re: Swap partition should equal exactly RAM size, for crash dump+savecore(8) to always work on crash?

2021-03-14 Thread Otto Moerbeek
On Sun, Mar 14, 2021 at 10:53:22AM +, Joseph Mayer wrote: > On Sunday, 14 March 2021 08:46, Otto Moerbeek wrote: > > On Sun, Mar 14, 2021 at 01:17:05AM +, Joseph Mayer wrote: > > > > > Hi, > > > Apologies if I missed any earlier clarification on the ma

Re: Swap partition should equal exactly RAM size, for crash dump+savecore(8) to always work on crash?

2021-03-13 Thread Otto Moerbeek
On Sun, Mar 14, 2021 at 01:17:05AM +, Joseph Mayer wrote: > Hi, > > Apologies if I missed any earlier clarification on the mailing list of > this question: > > What should the size of my swap partition be exactly, at least, for it > to guaranteedly be big enough to contain a whole kernel

malloc cache changes

2021-03-09 Thread Otto Moerbeek
Hi, you might be interested in https://marc.info/?l=openbsd-tech=161527759429295=2 Followup on tech@ please, -Otto

Re: update to docs/faq for partition sizes ?

2021-02-15 Thread Otto Moerbeek
On Mon, Feb 15, 2021 at 01:57:23AM -0800, harold felton wrote: > howdee, > > this is totally not critical, but i will go ahead and ask: > > assuming that i have added the following to /etc/mk.conf... > DEBUG=-g > KEEPKERNELS=yes > SUDO=doas > WARNINGS=-Wall > > how big do i need the /usr/obj

Re: sysupgrade failure logs

2021-02-14 Thread Otto Moerbeek
On Sun, Feb 14, 2021 at 06:39:15PM -0500, Judah Kocher wrote: > I had this nicely formatted when I sent it, but it seems to have been > reformatted elsewhere in transit. Hopefully this helps but if not I will > leave it be. > > On 2/14/21 6:27 PM, Judah Kocher wrote: > > Thanks to each of you

Re: sysupgrade failure logs

2021-02-14 Thread Otto Moerbeek
On Sun, Feb 14, 2021 at 12:02:07PM -0500, Judah Kocher wrote: > Hello folks, > > I am having an issue with sysupgrade and I have had trouble finding the > source of the problem so I hope someone here might be able and willing to > point me in the right direction. > > I have 6 small systems

Re: Installation overwritten... Accidental disklabel and newfs

2021-02-10 Thread Otto Moerbeek
le to use disklabel and other tools such as > newfs, growfs without running through the installer. > > In my case I forgot that the installer continues automatically with the > next command and also used the wrong switch to disklabel. > > It's a good thing I take backups serio

Re: Installation overwritten... Accidental disklabel and newfs

2021-02-10 Thread Otto Moerbeek
On Wed, Feb 10, 2021 at 03:35:06PM +, Ed Gray wrote: > Okay, thanks Stuart. > > I have left testdisk running a deep scan and will see if it finds my /var. > I know I'll still have to mount the partitions and I don't know if an fsck > would be able to fix any damage done by newfs. > > I

Re: Unknown process modifying routing table

2021-02-06 Thread Otto Moerbeek
On Sat, Feb 06, 2021 at 12:18:40PM +, James wrote: > I've disabled my VPN on the machine as well as dhclient, connecting via a > fixed static IP address and DNS servers. My routing table is still being > modifed by PID 0 (which I assume to be the kernel) every 30 minutes or so. > Ntpd is also

Re: OpenBSD (memory management) performance issues

2021-01-28 Thread Otto Moerbeek
On Thu, Jan 28, 2021 at 03:25:46PM +, Marek Klein wrote: > > On Wed, Jan 27, 2021 at 08:39:46AM +0100, Otto Moerbeek wrote: > > > > > On Tue, Jan 26, 2021 at 04:08:40PM +, Marek Klein wrote: > > > > > > > Hi, > > > > > > &

Re: OpenBSD (memory management) performance issues

2021-01-27 Thread Otto Moerbeek
On Wed, Jan 27, 2021 at 08:39:46AM +0100, Otto Moerbeek wrote: > On Tue, Jan 26, 2021 at 04:08:40PM +, Marek Klein wrote: > > > Hi, > > > > We are working on an appliance like product that is based on OpenBSD. > > Recently we found out that our performance cr

Re: OpenBSD (memory management) performance issues

2021-01-26 Thread Otto Moerbeek
On Tue, Jan 26, 2021 at 04:08:40PM +, Marek Klein wrote: > Hi, > > We are working on an appliance like product that is based on OpenBSD. > Recently we found out that our performance critical C++ program is > ~2.5 times slower on OpenBSD compared to Ubuntu 20.04. > > The program basically

Re: Provide a code example

2021-01-24 Thread Otto Moerbeek
On Sun, Jan 24, 2021 at 09:12:16AM +0100, Ivan wrote: > Can you send a C code example of obtaining sysctl vm.loadavg via sysctl(2) > function? > -- > Regards, > Ivan > Youn have the source: grepping for VM_LOADAVG turns up usr.bin/top/machine.c: static int sysload_mib[] = {CTL_VM,

Re: Understanding memory statistics

2021-01-23 Thread Otto Moerbeek
e page admin level so that the mapping refers to pages that are already in mem via the Buffer Cache. Thinking about it it would involve some form of unification, so likely some mem to mem copying is going on. It shows my experience is mostly userland memory management -Otto > >

Re: Understanding memory statistics

2021-01-22 Thread Otto Moerbeek
) > current -=increment; > if (current < 100) > { > printf("%d%%... ", current); > fflush(stdout); > cur

Re: rm: fts_read: No such file or directory

2021-01-13 Thread Otto Moerbeek
On Wed, Jan 13, 2021 at 09:46:27PM +0100, Paul de Weerd wrote: > Hi all, > > While doing some clean-up on my backup filesystem (which extensively > uses hardlinks), I came across the error in Subject: > > rm: fts_read: No such file or directory > > Traversing the hierarchy I was trying

Re: Understanding memory statistics

2021-01-10 Thread Otto Moerbeek
On Sun, Jan 10, 2021 at 09:34:49PM +, Anindya Mukherjee wrote: > Hi, I'm trying to understand the various numbers reported for memory > usage from top, vmstat, and systat. I'm running OpenBSD 6.8 on a Dell > Optiplex 7040 with an i7 6700, 3.4 Ghz and 32 GB RAM. The GPU is an > Intel HD

Re: cmp(1) '-s' flag ignoring byte offset argument?

2021-01-09 Thread Otto Moerbeek
On Sat, Jan 09, 2021 at 12:05:31AM -0800, William Ahern wrote: > On Fri, Jan 08, 2021 at 07:09:01PM -0800, Jordan Geoghegan wrote: > > Hey folks, > > > > I've noticed some surprising behaviour from cmp(1) when using the '-s' > > flag. > > > > It appears that cmp -s is ignoring the byte offset

Re: cmp(1) '-s' flag ignoring byte offset argument?

2021-01-08 Thread Otto Moerbeek
On Fri, Jan 08, 2021 at 07:09:01PM -0800, Jordan Geoghegan wrote: > Hey folks, > > I've noticed some surprising behaviour from cmp(1) when using the '-s' flag. > > It appears that cmp -s is ignoring the byte offset arguments I'm giving it. > > I don't want to waste time babbling, so here's an

Re: misc panics

2020-12-28 Thread Otto Moerbeek
On Mon, Dec 28, 2020 at 10:25:08AM +0100, Bastien Durel wrote: > Le lundi 28 décembre 2020 à 09:17 +, Stuart Henderson a écrit : > > > So hardware failure confirmed :/ Do you think I can change the RAM > > > or > > > it's more likely a CPU/Chipset failure ? > > > > > > Thanks, > > > > > >

Re: seasons greetings and a network question

2020-12-20 Thread Otto Moerbeek
On Sun, Dec 20, 2020 at 10:49:49AM +, Laura Smith wrote: > > > ‐‐‐ Original Message ‐‐‐ > On Sunday, 20 December 2020 10:28, Peter J. Philipp wrote: > > > > The story is, that I log time to lives (TTL) with a setsockopt() on my > > logging > > DNS server. Whenever

Re: Potential dig bug?

2020-12-17 Thread Otto Moerbeek
On Thu, Dec 17, 2020 at 11:10:59AM +0100, Otto Moerbeek wrote: > On Thu, Dec 17, 2020 at 12:27:00AM -0800, Jordan Geoghegan wrote: > > > > > > > On 12/16/20 11:19 PM, Otto Moerbeek wrote: > > > On Wed, Dec 16, 2020 at 02:37:19PM -0800, Jordan Geogheg

Re: Potential dig bug?

2020-12-17 Thread Otto Moerbeek
On Thu, Dec 17, 2020 at 12:27:00AM -0800, Jordan Geoghegan wrote: > > > On 12/16/20 11:19 PM, Otto Moerbeek wrote: > > On Wed, Dec 16, 2020 at 02:37:19PM -0800, Jordan Geoghegan wrote: > > > > > Hi folks, > > > > > > I've found some surpris

Re: Potential dig bug?

2020-12-16 Thread Otto Moerbeek
On Wed, Dec 16, 2020 at 02:37:19PM -0800, Jordan Geoghegan wrote: > Hi folks, > > I've found some surprising behaviour in the 'dig' utility. I've noticed that > dig doesn't seem to support link local IPv6 addresses. I've got unbound > listening on a link local IPv6 address on my router and all

ntpd and no RTC

2020-12-06 Thread Otto Moerbeek
Hi, As seen in another thread there are some questionms on how ntpd works if no relatime clock is available or it's battery is dead. This poses problems since ntpd needs DNS and if the time is not right, DNSSEC validation might fail. The goals it to work in as mancy cass as possible , but also

Re: clock not set on boot

2020-12-05 Thread Otto Moerbeek
On Sun, Dec 06, 2020 at 08:39:36AM +0100, Otto Moerbeek wrote: > On Sun, Dec 06, 2020 at 08:33:33AM +0100, Otto Moerbeek wrote: > > > On Sat, Dec 05, 2020 at 07:42:48PM -0700, Theo de Raadt wrote: > > > > > Andy Goblins wrote: > > > > > > >

Re: clock not set on boot

2020-12-05 Thread Otto Moerbeek
On Sun, Dec 06, 2020 at 08:33:33AM +0100, Otto Moerbeek wrote: > On Sat, Dec 05, 2020 at 07:42:48PM -0700, Theo de Raadt wrote: > > > Andy Goblins wrote: > > > > > Does ntpd need DNS to set the time? Because my reslov.conf points to > > > 127.0.0

Re: clock not set on boot

2020-12-05 Thread Otto Moerbeek
On Sat, Dec 05, 2020 at 07:42:48PM -0700, Theo de Raadt wrote: > Andy Goblins wrote: > > > Does ntpd need DNS to set the time? Because my reslov.conf points to > > 127.0.0.1 and unbound needs the time before it will work properly. > > A problem of your own creation. > We do attept to work

Re: clock not set on boot

2020-12-05 Thread Otto Moerbeek
On Sat, Dec 05, 2020 at 09:10:19PM +, Maurice McCarthy wrote: > Perhaps add > > ntpd_flags="-s" > > to /etc/rc.conf.local > Nope, that's no longer needed.

Re: OpenBSD as a NAS

2020-12-05 Thread Otto Moerbeek
On Sat, Dec 05, 2020 at 12:36:04PM +, Roderick wrote: > > On Sat, 5 Dec 2020, Georg Bege wrote: > > > keep in mind that the ZFS supported versions may be quite different. > > > > The "one ZFS for many OS" isn't really working in reality, > > > > you may not be able to import your pool

Re: PayPal pool for developer M1 Mac mini for OpenBSD port

2020-12-02 Thread Otto Moerbeek
On Thu, Dec 03, 2020 at 03:18:54AM +0200, Mihai Popescu wrote: > I have only good wishes for the project, but I still don't get one thing: > why do some people start to behave oddly whenever Apple comes into > discussion. > They are doing a proprietary thing, closed as hell, no documentation and

Re: Large Filesystem

2020-11-15 Thread Otto Moerbeek
On Sun, Nov 15, 2020 at 02:57:49PM -0500, Kenneth Gober wrote: > On Sun, Nov 15, 2020 at 8:59 AM Mischa wrote: > > > On 15 Nov at 14:52, Otto Moerbeek wrote: > > > fsck wil get slower once you start filling it, but since your original > > > fs had about 104k file

Re: Large Filesystem

2020-11-15 Thread Otto Moerbeek
On Sun, Nov 15, 2020 at 02:43:03PM +0100, Mischa wrote: > On 15 Nov at 14:25, Otto Moerbeek wrote: > > On Sun, Nov 15, 2020 at 02:14:47PM +0100, Mischa wrote: > > > > > On 15 Nov at 13:04, Otto Moerbeek wrote: > > > > On Sat, Nov 14, 2020 at 0

Re: Large Filesystem

2020-11-15 Thread Otto Moerbeek
On Sun, Nov 15, 2020 at 02:14:47PM +0100, Mischa wrote: > On 15 Nov at 13:04, Otto Moerbeek wrote: > > On Sat, Nov 14, 2020 at 05:59:37PM +0100, Otto Moerbeek wrote: > > > > > On Sat, Nov 14, 2020 at 04:59:22PM +0100, Mischa wrote: > > > > > >

Re: Large Filesystem

2020-11-15 Thread Otto Moerbeek
On Sat, Nov 14, 2020 at 05:59:37PM +0100, Otto Moerbeek wrote: > On Sat, Nov 14, 2020 at 04:59:22PM +0100, Mischa wrote: > > > On 14 Nov at 15:54, Otto Moerbeek wrote: > > > On Sat, Nov 14, 2020 at 03:13:57PM +0100, Leo Unglaub wrote: > > > > > &g

Re: Large Filesystem

2020-11-14 Thread Otto Moerbeek
On Sat, Nov 14, 2020 at 04:59:22PM +0100, Mischa wrote: > On 14 Nov at 15:54, Otto Moerbeek wrote: > > On Sat, Nov 14, 2020 at 03:13:57PM +0100, Leo Unglaub wrote: > > > > > Hey, > > > my largest filesystem with OpenBSD on it is 12TB and for the minimal > &g

Re: Large Filesystem

2020-11-14 Thread Otto Moerbeek
On Sat, Nov 14, 2020 at 03:13:57PM +0100, Leo Unglaub wrote: > Hey, > my largest filesystem with OpenBSD on it is 12TB and for the minimal usecase > i have it works fine. I did not loose any data or so. I have it mounted with > the following flags: > > > local, noatime, nodev, noexec, nosuid,

Re: memory usage at a given time

2020-11-14 Thread Otto Moerbeek
On Sat, Nov 14, 2020 at 12:23:56PM +0100, Otto Moerbeek wrote: > It could be I'm mistaken an cache is part of tot. Indeed both act and cache are part of tot. -Otto > > Mihai Popescu schreef op 14 november 2020 11:49:35 CET: > >On Sat, Nov 14, 2020 at 12:30 PM Otto

Re: memory usage at a given time

2020-11-14 Thread Otto Moerbeek
It could be I'm mistaken an cache is part of tot. Mihai Popescu schreef op 14 november 2020 11:49:35 CET: >On Sat, Nov 14, 2020 at 12:30 PM Otto Moerbeek wrote: > >> On Sat, Nov 14, 2020 at 12:21:30PM +0200, Mihai Popescu wrote: >> >> [ .. ] >> > CPU0: 22.4%

Re: memory usage at a given time

2020-11-14 Thread Otto Moerbeek
On Sat, Nov 14, 2020 at 12:21:30PM +0200, Mihai Popescu wrote: > On Sat, Nov 14, 2020 at 9:29 AM Otto Moerbeek wrote: > > > > > > > vmstat only swows pi an po, pages paged in and out, not swap usage. > > > > For sysyat: the vmstat view does not show swap usa

Re: memory usage at a given time

2020-11-13 Thread Otto Moerbeek
On Sat, Nov 14, 2020 at 02:26:47AM +0200, Mihai Popescu wrote: > Hello, > > My computer has 2 x 4GB memory, as one can see in dmesg. A part of it is > used by the video card, I'm not sure how much, maybe around 256MB or less I > want to know if I will hit the swap space when I will let it run on

Re: Malloc options

2020-11-12 Thread Otto Moerbeek
On Thu, Nov 12, 2020 at 05:40:39AM -0600, ed...@pettijohn-web.com wrote: > On Nov 12, 2020 3:06 AM, Stuart Henderson wrote: > > On 2020-11-11, ed...@pettijohn-web.com > wrote: > > Thanks for the quick reply. I'll stick with "s" for now and if its > > unbearably slow I'll try others. >

Re: Malloc options

2020-11-11 Thread Otto Moerbeek
On Wed, Nov 11, 2020 at 10:09:19AM -0600, ed...@pettijohn-web.com wrote: > I'm trying to compile a program that is using a MALLOC_OPTIONS of "A" > which doesn't exist. Reading the manual all of the options look good to > me so what would be the best? I'm going to go with "S" unless otherwise >

Re: Set environment variable for non-interactive shell

2020-11-06 Thread Otto Moerbeek
On Fri, Nov 06, 2020 at 07:38:35PM +0100, Kirill Peskov wrote: > Unfortunately manpage for login.conf does not give any example, only > brief description: > > setenv envlist A list of environment > variables and associated

  1   2   3   4   5   6   7   8   9   10   >