-
skered
sockstat -np 1234 Is there a reason this is more than items with that port? Using -4 or -6 limits it to what I would expect.
-
llua
nothing about -p implies not showing non-internet sockets
-
llua
and from man sockstat: "If neither -4, -6 or -u is specified, sockstat will list sockets in all three domains."
-
skered
I'm still unhappy about!
-
polyex
i run top and RES is the physical memory actually being used by a process. but in top's summary at the top, there is no Res total in the Mem line. wtf?
-
V_PauAmma_V
I think that's because adding RES for all processes would count memory used by shared libraries multiple times. But I've been known to be wrong and my understanding of memory stats is weak.
-
lw
^ is the correct answer, it's basically impossible to calculate memory usage of a process on a shared/virtual memory system. 'RES' is just a fudge that's sometimes useful
-
lw
i do with top had more useful system memory statistics though
-
» edenist is such a moron.
-
edenist
spent way to long trying to work out why poudriere was flagging a bunch of ports as ignore even though I have since ditched mysql-57, then finally realised I had set 5.7 as the default version in the make.conf for the jail....
-
CountryBall0
hi all
-
CountryBall0
Fresh freebsd 14.0 install at vmware pro , no display manager nor window manager. simply at console. nothing is installed additionally after the fresh installation. file system is UFS. 'top' shows 199M 'wired' memory. I edited the kernel config file and removed 'not needed' parts (devices such as NICs and WIFIs) and recompiled the kernel, booted up but still 'wired' memory is 199M and if i do a installation for example it goes up. but never
-
CountryBall0
goes down. why a fresh install uses 200M by default ? and how can i lower or minimize the 'wired' memory ?
-
edenist
CountryBall0, I actually don't know how big the base 14 kernel is. I did a check on some 13.3 systems, x86 w/ zfs shows about 40M worth of kernel in memory, arm64 about 20M
-
edenist
usking kldstat as an estimate for the lower bounds of what you would expect in wired memory
-
edenist
userland can still be wired too though, so perhaps world has some things wired down too?
-
edenist
there is a huge amount of memory tuning options available though through various sysctl options. It could be that the defaults are less conservative than you'd have expected?
-
edenist
something like 'vmstat -h -m' might also help tell you where the memory is being used
-
edenist
it could be something like the network buffers using up some of this too?
-
CountryBall0
edenist, thanks for the reply. yeah I was expecting those values (40-20M) for my setup too but unfortunately it 200M. there are no network activity tho so no network buffers. but memory tuning and kldstat I will be looking into (thanks) , about userland, hmm how to pratically identify/diagnose the userland in this aspect to see which userland programs are wired and how much wired ?
-
CountryBall0
edenist, kldstat shows 7 other kernel modules as loaded. almost all of them related to vmware, virtualization. it seems I may discard the wired memory when in virtualized enviroment.. they cant be kldunloaded either. vmstat -h -m provided me interesting results, thanks again
-
dch
is there a partition resizing tool for FreeBSD?
-
dch
something like gparted Iguess?
-
drobban
dch: afaik gparted supports ufs
-
polarian
arino: FreeBSD has the strongest performance and has a lot of features (openzfs support, jails, strong virtualisation etc), its security is very Linux-like with support for MAC and containierisation/virtualisation. OpenBSD focuses on code correctness and security, they have rigid code standards and proactively audit their own codebase to ensure any rotting code is cut out... anything not required
-
polarian
is additional surface area for attack in their minds, and thus should be deleted. OpenBSD maintains a small, minimalistic, clean codebase whcih aims to be secure by design, however they do not agree with the mainstream Linux security ideas such as MAC (argued it simply is too complex and is switched off) and for containerisation its either chroot or unveil(). Whether you agree with their extreme
-
polarian
stance against the norm of "security", OpenSSH for example is shared between almost every major system in the world... and pf came from OpenBSD too... along with OpenSMTPD which seems to be a common choice of MTA
-
polarian
NetBSD focuses on hardware support, for example I believe they just announced RISCV support.....
-
polarian
If you want good support for hardware, NetBSD "just works" afaik
-
polarian
Yet to try NetBSD, I have used FreeBSD and OpenBSD only
-
dch
drobban: I would need to install linux for that tho
-
polarian
you also have DragonflyBSD which diverged from FreeBSD due to arguments on optimising performance
-
polarian
iirdc
-
polarian
-
VimDiesel
Title: Chapter 20. Storage | FreeBSD Documentation Portal
-
dch
polarian: I'm familiar with gpart, I'm looking for one that can handle resizing, not just extension thanks
-
polarian
ohhh
-
polarian
apologies I misunderstood
-
polarian
however gpart does support resize no?
-
polarian
gpart resize ...?
-
arino
polarian: thanks
-
jbo
lw, ping
-
dch
polarian: only into space at the end. If you want to resize a middle partition, it can't.
-
rafe
I tried to ask last night, but people were arguing the merits of the BSDs at the time
-
rafe
Anyone around using pkgBase?
-
xmj
what's your question?
-
dch
anybody familiar with mtools and gpart/glabel etc?
-
lw
jbo: hi
-
dch
I am trying to set a partition label EFISYS such that Linux `blkid -L EFISYS` works
-
jbo
lw, hey
-
dch
glabel & gpart don't do what I need, they only set `PARTLABEL=EFISYS` and not `LABEL`
-
dch
so I'm wondering if its possible with base tools. FWIW emulators/mtools was able to change it
-
meena
rafe: plenty of people by now
-
meena
(>3? at least)
-
paulf
Anyone know why st_dev in struct stat has a full 64 bit value but kinfo_vmentry returned by KERN_PROC_VMMAP is a 64bit field but only seems to contain the lower 32bits of the value obtained by stat?
-
paulf
(for ZFS)
-
BananaPiHalp
Hello, I cannot get FreeBSD 14.0 to boot on Banana Pi M1+ (ARM A20). The last messages I see before it hangs are: Using DTB provided by EFI at 0x78f0f000. Kernel entry at 0x72200200.Kernel args: (null). Does anyone have any suggestions on what I can try? Thanks!
-
BananaPiHalp
Can I run a different version of FreeBSD that will give me more debug output during boot? Would UART and serial console output help with dianosing?
-
V_PauAmma_V
BananaPiHalp, do you see a menu similar to the one in
docs.freebsd.org/en/books/handbook/bsdinstall/#bsdinstall-view-probe (perhaps with ASCII art instead)? From "Boot options" in that menu, you should be able to request verbose boot.
-
VimDiesel
Title: Chapter 2. Installing FreeBSD | FreeBSD Documentation Portal
-
BananaPiHalp
V_PauAmma_V: Unfortunately, no. I am using SD CARD so there is no installation and boot does not have a menu.
-
V_PauAmma_V
OK. Then perhaps someone familiar with that installation method can help. Or you could try the 14.1 beta release to see if it helps.
-
BananaPiHalp
This is as far as I my boot gets. I don't see any debug statements in bi_load so it looks like I need to do a custom build to add them myself?
github.com/freebsd/freebsd-src/blob…tand/efi/loader/arch/arm/exec.c#L77
-
VimDiesel
Title: freebsd-src/stand/efi/loader/arch/arm/exec.c at 2ae0f5a4d0931067c672be9a791909f0e32d5a0e · freebsd/freebsd-src · GitHub
-
lw
are you sure it's not actually booting but with a serial console? you might try mounting the sd card elsewhere and change boot_serial to NO in /boot/loader.conf
-
BananaPiHalp
lw: Did not know about that! I will try that, thank you!
-
lw
if you can't mount the sd card an alternative is to connect it to a network and see if it gets a dhcp lease, if it does you can log in as freebsd/freebsd via ssh
-
BananaPiHalp
will try that too!
-
lw
it might not be this, i haven't booted the sd card images for ages (and never on that hardware) but i know it does enable the serial console by default... i thought it was meant to be in dual console mode though
-
BananaPiHalp
that would be my assumption as well, it would be strange to give up on hdmi output on these boards. nevertheless, it may offer some clues
-
polyex
there any real benefit to keeping logs 640 instead of 644? like obviously assuming there aren't any secrets in the log. is it actually less secure to run 644 for the convenience?
-
scoobybejesus
that's arguably something that can depend on your threat model, but principle of least privilege overall seems like an easy way be secure without having to overthink it. taking away perms from those not the user and outside the group seems to be something wise that you should have good reason to go against