Re: sonewconn: pcb [...]: Listen queue overflow to human-readable form
On 15.12.2016 20:51, hiren panchasara wrote: > On 12/15/16 at 05:23P, Eugene M. Zheganin wrote: >> Hi. >> >> Sometimes on one of my servers I got dmesg full of >> >> sonewconn: pcb 0xf80373aec000: Listen queue overflow: 49 already in >> queue awaiting acceptance (6 occurrences) > [skip] >> >> but at the time of investigation the socket is already closed and lsof >> cannot show me the owner. I wonder if the kernel can itself decode this >> output and write it in the human-readable form ? > > I have this not-quite-correct patch that may help you. (If you follow the > discussion there, you'd know why its not complete.) > > https://lists.freebsd.org/pipermail/freebsd-net/2014-March/038074.html Hi Hiren, I think the check for socket's domain should be enough? -- WBR, Andrey V. Elsukov Index: sys/kern/uipc_socket.c === --- sys/kern/uipc_socket.c (revision 309834) +++ sys/kern/uipc_socket.c (working copy) @@ -139,6 +139,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include @@ -577,10 +578,15 @@ sonewconn(struct socket *head, int connstatus) overcount++; if (ratecheck(&lastover, &overinterval)) { - log(LOG_DEBUG, "%s: pcb %p: Listen queue overflow: " - "%i already in queue awaiting acceptance " - "(%d occurrences)\n", - __func__, head->so_pcb, head->so_qlen, overcount); + if (INP_CHECK_SOCKAF(head, AF_INET) || + INP_CHECK_SOCKAF(head, AF_INET6)) +over = ntohs(sotoinpcb(head)->inp_lport); + else +over = 0; + log(LOG_DEBUG, "%s: pcb %p: Listen queue overflow on " + "port %d: %i already in queue awaiting acceptance " + "(%d occurrences)\n", __func__, head->so_pcb, + over, head->so_qlen, overcount); overcount = 0; } signature.asc Description: OpenPGP digital signature
Upgrading boot from GPT(BIOS) to GPT(UEFI)
Hi everyone, A few months ago I got myself a new box and I have been happily running FreeBSD on it ever since. I noticed that the boot was not as fast as I had expected and I've realized that, while my disk is GPT partitioned, the boot process is still BIOS based: % gpart show => 34 976773101 ada0 GPT (466G) 34 6- free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064984- free - (492K) 2048 67108864 2 freebsd-swap (32G) 67110912 909662208 3 freebsd-zfs (434G) 976773120 15- free - (7.5K) I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot using UEFI straight into ZFS, so I am thinking of converting that freebsd-boot partition to an EFI partition, creating a FAT filesystem and copying /boot/boot.efi there. How good of an idea is that? Would it really be that simple or am I missing something? My only reason for wanting to boot with UEFI is faster boot, everything is working fine otherwise. Thanks in advance for your help. Best, Fernando ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On 12/16/2016 11:08, Fernando Herrero Carrón wrote: > Hi everyone, > > A few months ago I got myself a new box and I have been happily running > FreeBSD on it ever since. I noticed that the boot was not as fast as I had > expected and I've realized that, while my disk is GPT partitioned, the boot > process is still BIOS based: > > % gpart show > => 34 976773101 ada0 GPT (466G) > 34 6- free - (3.0K) > 40 1024 1 freebsd-boot (512K) >1064984- free - (492K) >2048 67108864 2 freebsd-swap (32G) >67110912 909662208 3 freebsd-zfs (434G) > 976773120 15- free - (7.5K) > > I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot > using UEFI straight into ZFS, so I am thinking of converting that > freebsd-boot partition to an EFI partition, creating a FAT filesystem and > copying /boot/boot.efi there. > > How good of an idea is that? Would it really be that simple or am I missing > something? My only reason for wanting to boot with UEFI is faster boot, > everything is working fine otherwise. I would recommend creating another partition for EFI instead of replacing your freebsd-boot partition, in order to have a working fallback in case EFI boot doesn't work. You would need to steal some space from your swap partition. Otherwise, it's a good idea, and it really is that simple. I did exactly that when I updated a machine to 11 and switched to EFI. $ gpart show ada0 => 34 500118125 ada0 GPT (238G) 34 6- free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064 1600 2 efi (800K) 2664 10485144 4 freebsd-swap (5.0G) 10487808 489629696 3 freebsd-zfs (233G) 500117504655- free - (328K) $ sysctl machdep.bootmethod machdep.bootmethod: UEFI Eric ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carrón wrote: > Hi everyone, > > A few months ago I got myself a new box and I have been happily running > FreeBSD on it ever since. I noticed that the boot was not as fast as I had > expected and I've realized that, while my disk is GPT partitioned, the boot > process is still BIOS based: > > % gpart show > => 34 976773101 ada0 GPT (466G) > 34 6- free - (3.0K) > 40 1024 1 freebsd-boot (512K) >1064984- free - (492K) >2048 67108864 2 freebsd-swap (32G) >67110912 909662208 3 freebsd-zfs (434G) > 976773120 15- free - (7.5K) > > I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot > using UEFI straight into ZFS, so I am thinking of converting that > freebsd-boot partition to an EFI partition, creating a FAT filesystem and > copying /boot/boot.efi there. > > How good of an idea is that? Would it really be that simple or am I missing > something? My only reason for wanting to boot with UEFI is faster boot, > everything is working fine otherwise. > > Thanks in advance for your help. I am also interesting by this case. I think expand freebsd-boot to about 1M (size of /boot/boot1.efifat), dding /boot/boot1.efifat and set to type to 'efi' may be enough. I am never tried this. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On 12/16/2016 11:39, Slawa Olhovchenkov wrote: > On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carrón wrote: > >> Hi everyone, >> >> A few months ago I got myself a new box and I have been happily running >> FreeBSD on it ever since. I noticed that the boot was not as fast as I had >> expected and I've realized that, while my disk is GPT partitioned, the boot >> process is still BIOS based: >> >> % gpart show >> => 34 976773101 ada0 GPT (466G) >> 34 6- free - (3.0K) >> 40 1024 1 freebsd-boot (512K) >>1064984- free - (492K) >>2048 67108864 2 freebsd-swap (32G) >>67110912 909662208 3 freebsd-zfs (434G) >> 976773120 15- free - (7.5K) >> >> I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot >> using UEFI straight into ZFS, so I am thinking of converting that >> freebsd-boot partition to an EFI partition, creating a FAT filesystem and >> copying /boot/boot.efi there. >> >> How good of an idea is that? Would it really be that simple or am I missing >> something? My only reason for wanting to boot with UEFI is faster boot, >> everything is working fine otherwise. >> >> Thanks in advance for your help. > > I am also interesting by this case. > I think expand freebsd-boot to about 1M (size of /boot/boot1.efifat), > dding /boot/boot1.efifat and set to type to 'efi' may be enough. I am > never tried this. I expect that would work. It's slightly risky, though, since it doesn't let you fall back to BIOS boot if EFI doesn't work. Eric ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On Fri, Dec 16, 2016 at 11:43:18AM -0600, Eric van Gyzen wrote: > On 12/16/2016 11:39, Slawa Olhovchenkov wrote: > > On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carrón wrote: > > > >> Hi everyone, > >> > >> A few months ago I got myself a new box and I have been happily running > >> FreeBSD on it ever since. I noticed that the boot was not as fast as I had > >> expected and I've realized that, while my disk is GPT partitioned, the boot > >> process is still BIOS based: > >> > >> % gpart show > >> => 34 976773101 ada0 GPT (466G) > >> 34 6- free - (3.0K) > >> 40 1024 1 freebsd-boot (512K) > >>1064984- free - (492K) > >>2048 67108864 2 freebsd-swap (32G) > >>67110912 909662208 3 freebsd-zfs (434G) > >> 976773120 15- free - (7.5K) > >> > >> I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot > >> using UEFI straight into ZFS, so I am thinking of converting that > >> freebsd-boot partition to an EFI partition, creating a FAT filesystem and > >> copying /boot/boot.efi there. > >> > >> How good of an idea is that? Would it really be that simple or am I missing > >> something? My only reason for wanting to boot with UEFI is faster boot, > >> everything is working fine otherwise. > >> > >> Thanks in advance for your help. > > > > I am also interesting by this case. > > I think expand freebsd-boot to about 1M (size of /boot/boot1.efifat), > > dding /boot/boot1.efifat and set to type to 'efi' may be enough. I am > > never tried this. > > I expect that would work. It's slightly risky, though, since it doesn't let > you > fall back to BIOS boot if EFI doesn't work. Live cd/USB can be fallback for this case. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On Fri, 16 Dec 2016, Eric van Gyzen wrote: On 12/16/2016 11:39, Slawa Olhovchenkov wrote: On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carr?n wrote: Hi everyone, A few months ago I got myself a new box and I have been happily running FreeBSD on it ever since. I noticed that the boot was not as fast as I had expected and I've realized that, while my disk is GPT partitioned, the boot process is still BIOS based: % gpart show => 34 976773101 ada0 GPT (466G) 34 6- free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064984- free - (492K) 2048 67108864 2 freebsd-swap (32G) 67110912 909662208 3 freebsd-zfs (434G) 976773120 15- free - (7.5K) I am reading uefi(8) and it looks like FreeBSD 11 should be able to boot using UEFI straight into ZFS, so I am thinking of converting that freebsd-boot partition to an EFI partition, creating a FAT filesystem and copying /boot/boot.efi there. How good of an idea is that? Would it really be that simple or am I missing something? My only reason for wanting to boot with UEFI is faster boot, everything is working fine otherwise. Thanks in advance for your help. I am also interesting by this case. I think expand freebsd-boot to about 1M (size of /boot/boot1.efifat), dding /boot/boot1.efifat and set to type to 'efi' may be enough. I am never tried this. I expect that would work. It's slightly risky, though, since it doesn't let you fall back to BIOS boot if EFI doesn't work. Eric I would shrink ada0p1 down to 128K (size of gptzfsboot = 88K now) and place efi partition (~800K) on free space between new p1 and p2. No need to touch swap partition. A. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On 16 Dec 2016, at 18:53, Antony Uspensky wrote: > > On Fri, 16 Dec 2016, Eric van Gyzen wrote: >> On 12/16/2016 11:39, Slawa Olhovchenkov wrote: >>> On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carr?n wrote: Hi everyone, A few months ago I got myself a new box and I have been happily running FreeBSD on it ever since. I noticed that the boot was not as fast as I had expected and I've realized that, while my disk is GPT partitioned, the boot process is still BIOS based: % gpart show => 34 976773101 ada0 GPT (466G) 34 6- free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064984- free - (492K) 2048 67108864 2 freebsd-swap (32G) 67110912 909662208 3 freebsd-zfs (434G) 976773120 15- free - (7.5K) ... > I would shrink ada0p1 down to 128K (size of gptzfsboot = 88K now) and place > efi partition (~800K) on free space between new p1 and p2. No need to touch > swap partition. Yes, this is almost exactly what I have done on a machine that was originally installed with gptzfsboot on the first partition, which was 512K. Since all the partitions on this SSD were aligned to 1M, I reduced the size of the first partition to 224K, freeing up a hole of exactly 800K for an EFI partition: => 40 976773088 ada0 GPT (466G) 40 2008- free - (1.0M) 2048448 1 freebsd-boot (224K) 2496 1600 4 efi (800K) 4096 33554432 2 freebsd-swap (16G) 33558528 943214592 3 freebsd-zfs (450G) 976773120 8- free - (4.0K) Then I wrote the preformatted boot1.efifat image to it, using: gpart bootcode -p /boot/boot1.efifat -i 4 ada0. You can also use dd of course, but I prefer using gpart for these kinds of manipulations. This way, you can choose between booting in old school BIOS mode, or UEFI mode. If the UEFI mode works flawlessly, you can always decide later to dump the freebsd-boot partition, and use only an EFI partition. -Dimitry P.S.: The only thing that triggers my OCD here is that the EFI partition has index 4, but is physically the second. But I can live with that, until I finally delete the freebsd-boot partition. :) signature.asc Description: Message signed with OpenPGP using GPGMail
bsdconfig
Hi All I wouldn't mind a little info on bsdconfig. I couldn't so far seem to find what I was looking for. I have a FreeBSD 11.0 server up and running fine. I added an additional drive and wanted to format and initialize the drive. I thought bsdconfig could do this but strangely, I can't seem to. It treats what I want to do as part of a fresh install and keeps saying I need to install a root partition. Am I overlooking something obvious? ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: bsdconfig
See straightforward guide: https://www.freebsd.org/doc/handbook/disks-adding.html Additional reading: http://www.wonkity.com/~wblock/docs/html/ssd.html http://www.wonkity.com/~wblock/docs/html/disksetup.html -- View this message in context: http://freebsd.1045724.x6.nabble.com/bsdconfig-tp6152433p6152447.html Sent from the freebsd-stable mailing list archive at Nabble.com. ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On Fri, Dec 16, 2016 at 11:00 AM, Dimitry Andric wrote: > On 16 Dec 2016, at 18:53, Antony Uspensky wrote: >> >> On Fri, 16 Dec 2016, Eric van Gyzen wrote: >>> On 12/16/2016 11:39, Slawa Olhovchenkov wrote: On Fri, Dec 16, 2016 at 06:08:34PM +0100, Fernando Herrero Carr?n wrote: > Hi everyone, > > A few months ago I got myself a new box and I have been happily running > FreeBSD on it ever since. I noticed that the boot was not as fast as I had > expected and I've realized that, while my disk is GPT partitioned, the > boot > process is still BIOS based: > > % gpart show > => 34 976773101 ada0 GPT (466G) > 34 6- free - (3.0K) > 40 1024 1 freebsd-boot (512K) > 1064984- free - (492K) > 2048 67108864 2 freebsd-swap (32G) > 67110912 909662208 3 freebsd-zfs (434G) > 976773120 15- free - (7.5K) > ... >> I would shrink ada0p1 down to 128K (size of gptzfsboot = 88K now) and place >> efi partition (~800K) on free space between new p1 and p2. No need to touch >> swap partition. > > Yes, this is almost exactly what I have done on a machine that was > originally installed with gptzfsboot on the first partition, which was > 512K. Since all the partitions on this SSD were aligned to 1M, I > reduced the size of the first partition to 224K, freeing up a hole of > exactly 800K for an EFI partition: > > => 40 976773088 ada0 GPT (466G) > 40 2008- free - (1.0M) >2048448 1 freebsd-boot (224K) >2496 1600 4 efi (800K) >4096 33554432 2 freebsd-swap (16G) >33558528 943214592 3 freebsd-zfs (450G) > 976773120 8- free - (4.0K) > > Then I wrote the preformatted boot1.efifat image to it, using: gpart > bootcode -p /boot/boot1.efifat -i 4 ada0. You can also use dd of > course, but I prefer using gpart for these kinds of manipulations. > > This way, you can choose between booting in old school BIOS mode, or > UEFI mode. If the UEFI mode works flawlessly, you can always decide > later to dump the freebsd-boot partition, and use only an EFI partition. > > -Dimitry > > P.S.: The only thing that triggers my OCD here is that the EFI partition > has index 4, but is physically the second. But I can live with that, > until I finally delete the freebsd-boot partition. :) You likely want to carve out more like 50MB instead of 800k for UEFI partition. 800k is the minimum, but it also precludes many things you may need to do with UEFI applications down the line. Warner ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
Re: Upgrading boot from GPT(BIOS) to GPT(UEFI)
On Fri, 16 Dec 2016 18:08:34 +0100, Fernando Herrero Carrón wrote: > Hi everyone, Hi, you've had plenty of helpful responses, but nobody has commented on: > My only reason for wanting to boot with UEFI is faster boot, > everything is working fine otherwise. I'm skeptical that UEFI boot would be any or noticeably faster than via BIOS, but am interested in hearing of any experiences regarding that. cheers, Ian ___ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"