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

Re: disk setup question

2020-10-29 Thread Otto Moerbeek
On Thu, Oct 29, 2020 at 02:44:39PM +0100, Aleksander De wrote: > Hi. > > Are there any downsides or potential issues which may happen when > extending boundaries for OpenBSD partition on >2TB disk while using > MBR for booting it at the same time? I need MBR otherwise the machine > will not

Re: search contains unknown domain in resolv.conf

2020-10-28 Thread Otto Moerbeek
xactly? Did you restart dhclient? Anything in logs? What are the contents of resolv.conf after re-aquiring a lease? -Otto > > Anything else I could try? > > Thank you. > > > > 27 Ekim 2020 Salı tarihinde Otto Moerbeek yazdı: > > > On Tue, O

Re: search contains unknown domain in resolv.conf

2020-10-27 Thread Otto Moerbeek
On Tue, Oct 27, 2020 at 02:32:46PM +0300, Andreas X wrote: > Greetings. On OpenBSD 6.8, I have unbound enabled in my server, (server > gets its IP via DHCP from my server provider) > In resolv.conf I have a "search your-server.de" line and I don't know what > hostname is that. > My own hostname

Re: getaddrinfo(3) in CGI program

2020-10-22 Thread Otto Moerbeek
On Thu, Oct 22, 2020 at 10:16:28AM -0400, ben wrote: > Hello, Misc; > > I'm attempting to write a CGI progam in C which uses getaddrinfo(3), however > upon running the script getaddrinfo doesn't seem to run. I have a feeling this > is due to linking issues as other have experienced a similar

Re: Disable touchpad acceleration? (wsmouse)

2020-10-13 Thread Otto Moerbeek
On Tue, Oct 13, 2020 at 11:38:11PM -0400, Brennan Vincent wrote: > Hello, > > I am using the wsmouse driver with x11, and no amount of googling or reading > man pages has helped me figure out how to disable acceleration and have > completely flat/linear response. Is this possible? > > I know

Re: dump LOB status

2020-09-26 Thread Otto Moerbeek
On Fri, Sep 25, 2020 at 07:49:20AM +0200, Otto Moerbeek wrote: > On Fri, Sep 25, 2020 at 08:42:38AM +0300, Juha Erkkilä wrote: > > > > > > On 24. Sep 2020, at 15.36, Otto Moerbeek wrote: > > > > > > On Tue, Sep 22, 2020 at 08:37:22PM +0300, Juha E

Re: dump LOB status

2020-09-24 Thread Otto Moerbeek
On Fri, Sep 25, 2020 at 08:42:38AM +0300, Juha Erkkilä wrote: > > > On 24. Sep 2020, at 15.36, Otto Moerbeek wrote: > > > > On Tue, Sep 22, 2020 at 08:37:22PM +0300, Juha Erkkilä wrote: > >> Actually, I tested this again and now it appears > >> dump and

Re: dump LOB status

2020-09-24 Thread Otto Moerbeek
On Tue, Sep 22, 2020 at 08:37:22PM +0300, Juha Erkkilä wrote: > > > On 22. Sep 2020, at 15.04, Juha Erkkilä wrote: > > > >> On 22. Sep 2020, at 9.00, Otto Moerbeek wrote: > >> Maybe by hand, but not by using patch(1), the context differs a bit. > >>

Re: dump LOB status

2020-09-22 Thread Otto Moerbeek
On Mon, Sep 21, 2020 at 10:23:55PM +0300, Juha Erkkilä wrote: > > > > On 16. Sep 2020, at 20.27, Juha Erkkilä wrote: > > > > > >> On 16. Sep 2020, at 0.18, Kenneth Gober wrote: > >> I took a very quick look at the source and it appears that 213 is shown in > >> octal. I believe that the

Re: Does DNS need TCP?

2020-09-21 Thread Otto Moerbeek
On Sun, Sep 20, 2020 at 10:17:47PM -0400, Predrag Punosevac wrote: > Nicolai wrote : > > > On Sun, Sep 20, 2020 at 12:43:41AM -0400, Predrag Punosevac wrote: > > > > > For number of years I had in my /var/unbound/etc/unbound.conf line > > > > > > do-tcp: no > > > > > To make things worse I

Re: Does DNS need TCP?

2020-09-20 Thread Otto Moerbeek
On Sun, Sep 20, 2020 at 12:43:41AM -0400, Predrag Punosevac wrote: > > > Hi Misc, > > I have been a double as a system admin for our small university research > group for a number of years now but every now and then I get reminded of > my own ignorance. One of those moments happened a month

Re: Troubleshooting pf congestion

2020-09-14 Thread Otto Moerbeek
On Mon, Sep 14, 2020 at 11:19:46AM -0400, Scott Reese wrote: > Greetings: > > I am troubleshooting an issue: users complaining about network performance. > The firewall > is an OpenBSD 6.7 system with patches applied. I've traced the issue and I'm > seeing the > congestion counter incrementing

Re: Crashing 64bit (AMD) 6.7 kernel on APU2

2020-08-30 Thread Otto Moerbeek
On Sun, Aug 30, 2020 at 03:33:17PM +1000, Damian McGuckin wrote: > > Hi, > > For the first time ever, we have seen a crashing kernel. Having never > experienced this before on any OpenBSD release for over 20 years, I have no > debugging experience. We have simply reverted to 32bit to see it

Re: Confused by adjfreq(2)

2020-08-15 Thread Otto Moerbeek
On Sat, Aug 15, 2020 at 09:10:26AM +0100, Julian Smith wrote: > On Mon, 10 Aug 2020 09:53:10 +0200 > Otto Moerbeek wrote: > > > On Sun, Aug 09, 2020 at 09:46:00PM +0100, Julian Smith wrote: > > > > > I've just used adjfreq() directly to correct my hardware

Re: How many IPs can I block before taking a performance hit?

2020-08-12 Thread Otto Moerbeek
On Wed, Aug 12, 2020 at 08:11:14AM -0400, Alan McKay wrote: > Hey folks, > > This is one that is difficult to test in a test environment. > > I've got OpenBSD 6.5 on a relatively new pair of servers each with 8G RAM. > > With some scripting I'm looking at feeding block IPs to the firewalls >

Re: explicit_bzero vs. alternatives

2020-08-11 Thread Otto Moerbeek
On Tue, Aug 11, 2020 at 08:20:32AM +0200, Otto Moerbeek wrote: > On Tue, Aug 11, 2020 at 08:13:24AM +0200, Philipp Klaus Krause wrote: > > > Am 11.08.20 um 02:52 schrieb Theo de Raadt: > > > > > > But no, WG14 are the lords and masters in the high castle, and no

Re: explicit_bzero vs. alternatives

2020-08-11 Thread Otto Moerbeek
On Tue, Aug 11, 2020 at 08:13:24AM +0200, Philipp Klaus Krause wrote: > Am 11.08.20 um 02:52 schrieb Theo de Raadt: > > > > But no, WG14 are the lords and masters in the high castle, and now 6 > > years after the ship sailed something Must Be Done, it must look like > > They Solved The Problem,

Re: Confused by adjfreq(2)

2020-08-10 Thread Otto Moerbeek
On Sun, Aug 09, 2020 at 09:46:00PM +0100, Julian Smith wrote: > I've just used adjfreq() directly to correct my hardware clock, which > was running an hour ahead of UTC (due to my hardware previously running > Windows). > > But i've struggled to understand the adjfreq(2) man page, so ended up >

Re: grow a filesystem on a softraid

2020-07-22 Thread Otto Moerbeek
On Wed, Jul 22, 2020 at 02:20:41PM +0200, Leo Unglaub wrote: > Hey, > i have the following setup: I have the drive sd1 with 20GB and on there i > have one partition "a" with the type RAID. On that raid i have used bioctl > to create an encrypted partition. When i decrypt sd1a it becomes sd3 and

Re: NSD Problems (Reverse Direction)

2020-07-08 Thread Otto Moerbeek
On Thu, Jul 09, 2020 at 01:19:47AM +, ken.hendrick...@l3harris.com wrote: > What am I doing wrong??? I'm using nsd on OpenBSD. > > > > > > nsd works only in the forward direction: from a name to an IP address. > I'm using my named zone files from way back. > nsd-checkzone says that the

Re: strlcpy version speed tests?

2020-07-04 Thread Otto Moerbeek
On Sat, Jul 04, 2020 at 09:07:35AM -0400, Brian Brombacher wrote: > > >> On Jul 1, 2020, at 1:14 PM, gwes wrote: > >> > >> On 7/1/20 8:05 AM, Luke Small wrote: > >> I spoke to my favorite university computer science professor who said > >> ++n is faster than n++ because the function needs to

Re: disklabel: autoalloc failed

2020-06-26 Thread Otto Moerbeek
On Fri, Jun 26, 2020 at 05:53:24PM +, Rupert Gallagher wrote: > Ref. disklabel(8) > > The maximum disk and partition size is 64PB. > > Is that so? Let see... > > OpenBSD 6.7 (GENERIC.MP) #2: Thu Jun  4 09:55:08 MDT 2020 > > $> doas dmesg | grep sd3 > sd3 at scsibus2 targ 2 lun 0: >

Re: Stuck in Needbuf state, trying to understand (6.7)

2020-06-25 Thread Otto Moerbeek
On Thu, Jun 25, 2020 at 09:51:41PM -0400, sven falempin wrote: > Hello, > > I have a script that mostly untar stuff on a vnd device. > And i have the same problem with syspatch > > The program state gets into needbuf forever, ( the top state ). > > I'm trying to figure out what is happening, >

Re: OpenBSD 6.6/amd64 kernel crash: softdep_deallocate_dependencies: unrecovered I/O error

2020-06-07 Thread Otto Moerbeek
On Sun, Jun 07, 2020 at 02:18:50PM +0200, Antonius Bekasi wrote: > Hi Misc, > > > > This is just a report. My lovely OpenBSD firewall crashed lately too much. So > here kernel debugger output. > > I was using softdep in every partition. Now i removed every softdep from > fstab. I think

Re: Filling a 4TB Disk with Random Data

2020-06-05 Thread Otto Moerbeek
On Thu, Jun 04, 2020 at 08:39:24PM -0700, Justin Noor wrote: > Thanks you @misc. > > Using dd with a large block size will likely be the course of action. > > I really need to refresh my memory on this stuff. This is not something we > do, or need to do, everyday. > > Paul your example shows:

Re: Message WARNING: CHECK AND RESET THE DATE! in kvm guests

2020-06-02 Thread Otto Moerbeek
0.081ms20.071ms 0.387ms > 162.159.200.1 from pool pool.ntp.org > 1 10 3 11s 30s 1.502ms 2.442ms 0.134ms > 147.156.7.18 from pool pool.ntp.org > 1 10 2 3005s 3154s 1.199ms19.994ms 0.321ms > > On 25/05/2020, 10:20,

Re: OpenBSD 6.7 and ffs2 FAQs

2020-05-28 Thread Otto Moerbeek
On Wed, May 27, 2020 at 10:54:59PM +0200, Otto Moerbeek wrote: > I got some questions on ffs2 in 6.7. This is to set the record > straight, feel free to share on forums like reddit that I do not read, > let alone post on. > > 1. Using 6.7, the *installer* defaults to ffs2 for

Re: OpenBSD 6.7 and ffs2 FAQs

2020-05-27 Thread Otto Moerbeek
On Thu, May 28, 2020 at 07:48:57AM +0200, Matthias wrote: > On a fresh 6.7 installation, mount(8) shows 'type ffs'. Is there any way > to figure out the version number? dumpfs /dev/rsdXY | head -1 -Otto > > > On 2020-05-27 22:54, Otto Moerbeek wrote: > > I got s

OpenBSD 6.7 and ffs2 FAQs

2020-05-27 Thread Otto Moerbeek
I got some questions on ffs2 in 6.7. This is to set the record straight, feel free to share on forums like reddit that I do not read, let alone post on. 1. Using 6.7, the *installer* defaults to ffs2 for new filesystems for almost all platforms. 2. Using 6.7, a newfs "by hand" still gets you

Re: Kernel relinking on old boxen at every boot

2020-05-25 Thread Otto Moerbeek
On Mon, May 25, 2020 at 05:35:17PM +0200, ULF wrote: > Hello Devs, > > I followed, some time ago, the proposal of a user who suggested a diff for > an "opt out" of KARL to be placed in /etc/rc.conf.local, proposal which > which wasn't welcomed well. > > While agreeing that on servers and modern

Re: 6.7 boot crashes on "entry point at" X1 Carbon gen7 i7-10510U

2020-05-25 Thread Otto Moerbeek
On Mon, May 25, 2020 at 08:29:56AM +0200, Otto Moerbeek wrote: > On Sun, May 24, 2020 at 09:46:09PM +0900, John Mettraux wrote: > > > On Sun, May 24, 2020 at 8:38 PM Otto Moerbeek wrote: > > > > > > On Sun, May 24, 2020 at 08:26:43PM +0900, John Mettraux wrote

Re: Message WARNING: CHECK AND RESET THE DATE! in kvm guests

2020-05-25 Thread Otto Moerbeek
On Mon, May 25, 2020 at 07:53:47AM +, Carlos Lopez wrote: > Hi all, > > After upgrading four kvm guests to OpenBSD 6.7, I see the following messages > when these guests starts: > > WARNING: clock gained 2 days > WARNING: CHECK AND RESET THE DATE! This means the clock compared to the last

Re: 6.7 boot crashes on "entry point at" X1 Carbon gen7 i7-10510U

2020-05-25 Thread Otto Moerbeek
On Sun, May 24, 2020 at 09:46:09PM +0900, John Mettraux wrote: > On Sun, May 24, 2020 at 8:38 PM Otto Moerbeek wrote: > > > > On Sun, May 24, 2020 at 08:26:43PM +0900, John Mettraux wrote: > > > > > On Sun, May 24, 2020 at 5:36 PM Stuart Henderson > > &g

Re: 6.7 boot crashes on "entry point at" X1 Carbon gen7 i7-10510U

2020-05-24 Thread Otto Moerbeek
On Sun, May 24, 2020 at 08:26:43PM +0900, John Mettraux wrote: > On Sun, May 24, 2020 at 5:36 PM Stuart Henderson wrote: > > > > On 2020-05-23, John Mettraux wrote: > > > > > > (...) > > > > > > Hard power down is the only way out, but rebooting still leads > > > immediately to the > > > "entry

Re: Unable to sysupgrade to 6.7!

2020-05-23 Thread Otto Moerbeek
On Sat, May 23, 2020 at 09:33:59AM +0200, Federico Giannici wrote: > I was unable to upgrade my amd64 6.6 workstation to 6.7. > > Here is what happens: https://www.neomedia.it/tmp/67.jpg > > Then system reboot in an infinite loop (finally I changed the boot image to > "bsd" and returned to

Re: Convert ffs1 to ffs2?

2020-05-20 Thread Otto Moerbeek
On Wed, May 20, 2020 at 11:30:00AM +0300, Михаил Попов wrote: > > "Possible" is irrelevant. Lots of things are _possible_ but not done. > > Then only rsyncing? > > Why not adding at least one of a well tested journaled FS like XFS to OpenBSD? > Is XFS too fat and complex to be secure? > > Does

Re: OpenBSD/sparc64 6.7-beta not working on silver Blade 2500

2020-05-02 Thread Otto Moerbeek
On Thu, Apr 09, 2020 at 12:24:17PM +0200, Otto Moerbeek wrote: > On Wed, Apr 08, 2020 at 07:03:29PM +0200, Sigi Rudzio wrote: > > > Am Mi., 8. Apr. 2020 um 08:37 Uhr schrieb Otto Moerbeek : > > > > > > On Wed, Apr 08, 2020 at 01:11:29AM +0200, Sigi Rudzio w

Re: /bin/sh echo \n

2020-04-26 Thread Otto Moerbeek
On Sun, Apr 26, 2020 at 01:04:05PM +0200, Otto Moerbeek wrote: > On Sun, Apr 26, 2020 at 12:27:24PM +0200, Thomas de Grivel wrote: > > > Hello, > > > > I was testing some scripting using /bin/sh and I could not find this > > behaviour in the documentation : > &

Re: /bin/sh echo \n

2020-04-26 Thread Otto Moerbeek
On Sun, Apr 26, 2020 at 12:27:24PM +0200, Thomas de Grivel wrote: > Hello, > > I was testing some scripting using /bin/sh and I could not find this > behaviour in the documentation : > > > $ /bin/sh > > $ echo -n '\n' > > > > $ > > It seems that ksh even in sh (posix ?) mode does expansion of

Re: _types.h: increase size of size_t

2020-04-24 Thread Otto Moerbeek
On Thu, Apr 23, 2020 at 10:45:38PM -0400, Ian Sutton wrote: > Following the revalations made by a misc@ poster, I am happy to present > the following patch which increases the width of size_t from "long" to > "long long", which is twice the width as before, on all platforms. This > has the effect

Re: MIdnight Commander won't run

2020-04-22 Thread Otto Moerbeek
On Wed, Apr 22, 2020 at 05:15:30AM +, slackwaree wrote: > That's why you never upgrade ... rather migrate. I still find it hard to > believe that obsd added a tool to upgrade the system. Strange, upgrading saves lots of time and work and works for a tonne of people. I suspect sysclean (a

Re: timegm()

2020-04-21 Thread Otto Moerbeek
On Tue, Apr 21, 2020 at 10:51:54AM +, Roderick wrote: > > Acording to the man page: "timegm() is a deprecated interface that > converts [...]" > > O.K., deprecated. And what is the alternative? > > Thanks for any hint > Rodrigo > The paragraph above it (discussing timelocal()) suggests

Re: Double fault trap in rtable_l2

2020-04-20 Thread Otto Moerbeek
fs partitions though I don't see how > it could be related ? First retest with a kervel without diffs. If you collect more information you can file a bug report, see http://www.openbsd.org/report.html -Otto > > Le dim. 19 avr. 2020 à 17:30, Otto Moerbeek a écrit : > > >

Re: Double fault trap in rtable_l2

2020-04-19 Thread Otto Moerbeek
On Sun, Apr 19, 2020 at 10:26:20AM +0200, Thomas de Grivel wrote: > Hello, > > I got this error last night on an OpenBSD 6.6-stable amd64 on which I > recently enabled IKEv2 : > > > kernel: double fault trap, code=0 > > Stopped atrtable_l2+0x27: callq srp_enter+0x4 > > I'm a bit

Re: S3 Virge support on IBM T23 for 6.6

2020-04-15 Thread Otto Moerbeek
On Wed, Apr 15, 2020 at 04:55:04PM +0200, Paolo Aglialoro wrote: > Hello, > > I read from the 6.5 to 6.6 upgrade guide that the following files: > > > */usr/X11R6/lib/modules/drivers/s3_drv.la > /usr/X11R6/lib/modules/drivers/s3_drv.so >

Re: openbsd.org down?

2020-04-13 Thread Otto Moerbeek
On Mon, Apr 13, 2020 at 10:13:47AM -0500, Eric Zylstra wrote: > ezylstra ~ % traceroute openbsd.org > traceroute to openbsd.org (129.128.5.194), 64 hops max, 52 byte packets > 1 dslrouter (192.168.0.1) 0.811 ms 0.405 ms 0.295 ms > 2 stpl-dsl-gw13.stpl.qwest.net (207.109.2.13) 10.595 ms

Re: Does Intel driver supports 3d acceleration?

2020-04-11 Thread Otto Moerbeek
On Sat, Apr 11, 2020 at 03:52:34PM +0600, Nikita Stepanov wrote: > Does Intel driver supports 3d acceleration? What prevents you from looking up the man page and reading it? -Otto

Re: 6.7-BETA on Thinkpad P1 with two drives : (won't boot)

2020-04-09 Thread Otto Moerbeek
On Thu, Apr 09, 2020 at 11:39:08PM +1200, Derek Sivers wrote: > 6.7-BETA (today's snapshot). > > Lenovo ThinkPad P1 2nd gen with two NVMe inside. > > Windows on /dev/sd1 > Installed OpenBSD on /dev/sd0 (a 1TB Samsung 970 pro) > /dev/sd0 has had FreeBSD and Arch Linux on it successfully. > >

  1   2   3   4   5   6   7   8   9   10   >