Replies: 15 comments 7 replies
-
@joske
No worries man, just means I get more time to work on the core functionality of the whole program.
The cpu percent for processes is also not working correctly in OSX, need to look it over.
Will take a look at the freebsd code tomorrow and fix up the Makefile and see if I can find a solution to the leak(s) in Proc. Are you using any custom gcc toolchain or just standard tools and the gcc11 package? |
Beta Was this translation helpful? Give feedback.
-
Do you have a FreeBSD system already? If not, I recommend using ghostbsd.
Has graphical installer and boots directly in desktop like a Linux distro.
With FreeBSD proper you spend an evening trying to get the desktop to work
🙄. I installed FreeBSD on virtualbox. Feels like Linux in 1996 when I was
starting out... Then I remembered an old laptop and installed ghostbsd on
that. Much impressed with that. Even had working wifi and sleep support
…On Fri, 22 Oct 2021, 16:15 aristocratos, ***@***.***> wrote:
@joske <https://github.com/joske>
Actually hadn't noticed, nice work! :)
Sorry to steal your work.
No worries man, just means I get more time to work on the core
functionality of the whole program.
mem leak in processes (like osx) - rest seems fine
The cpu percent for processes is also not working correctly in OSX, need
to look it over.
Makefile is hacked at the moment, still need to separate with ifeq etc
Will take a look at the freebsd code tomorrow and see if I can find a
solution to the leak(s) in Proc.
Are you using any custom gcc toolchain or just standard tools and the
gcc11 package?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R7FVELCGKGT6PBOP63UIFWX3ANCNFSM5GQTVHHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I have an old VM setup with ghostbsd for testing bpytop, should be fine after some updates.
Yeah, I remember installing slackware from some insane number of floppies in the distant past, not an experience I wanna relive :P |
Beta Was this translation helpful? Give feedback.
-
@joske The cpu percentages for processes is indeed a bit wonky. Will take another look at it when I've got freebsd setup on some real hardware. Awesome work otherwise, alot of stuff seems to be working nicely :) |
Beta Was this translation helpful? Give feedback.
-
Install the clangd extension, then you have at least basic auto complete.
Need to set the path to clangd to clangd12. I developed directly on the
FreeBSD laptop. But the intellisense plugin doesn't work like it does on
Linux 😕
Great! I was working on CPU temperature, it seemed simple but somehow what
I get back from the sysctl is 3100 degrees 🤔. Sysctl on the command line
returns same values.
…On Sat, 23 Oct 2021, 22:00 aristocratos, ***@***.***> wrote:
@joske <https://github.com/joske>
Fixed the leaking, added a RAII wrapper for kvm_openfiles since it needed
a kvm_close to free up allocations.
And fixed tree mode by removing pid 0 for kernel process and pseudo
process idle.
The cpu percentages for processes is indeed a bit wonky. Will take another
look at it when I've got freebsd setup on some real hardware.
I noticed vscodes remote ssh targets didn't support freebsd, so is
currently working on the code in a remote folder without any intellisense
or linting, not ideal.
But have laptop I'm gonna set up a fresh install of ghostbsd on and run
vscode directly on the machine instead.
Awesome work otherwise, alot of stuff seems to be working nicely :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R6ITE3KPDDC4Y5RYM3UIMH7JANCNFSM5GQTVHHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Won't work from remote since it will look for the system header files on the local system and not the remote freebsd system. But shouldn't be an issue when I've got it setup on some real hardware.
Multiplied by 100 for int to float conversion possibly? Would be weird though since it's usually a multiplier by 1000 or more in those cases. Is cpu hz working btw? Don't get any value in the VM. |
Beta Was this translation helpful? Give feedback.
-
No it's not multiplied by 100. Like completely different from actual value.
Will investigate when I have time, no time anymore tonight.
Indeed it doesn't show although it was implemented. Will check that too.
Battery is working.
…On Sat, 23 Oct 2021, 22:15 aristocratos, ***@***.***> wrote:
Install the clangd extension, then you have at least basic auto complete.
Won't work from remote since it will look for the system header files on
the local system and not the remote freebsd system.
Don't know why they haven't added freebsd as a valid remote ssh target
yet, since electron and vscode in general seems to work fine on freebsd...
But shouldn't be an issue when I've got it setup on some real hardware.
Great! I was working on CPU temperature, it seemed simple but somehow what
I get back from the sysctl is 3100 degrees 🤔. Sysctl on the command line
returns same values.
Multiplied by 100 for int to float conversion possibly? Would be weird
though since it's useally a multiplier by 1000 or more in those cases.
Is cpu hz working btw? Don't get any value in the VM.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R6ZDEAICFWCR7RBHZDUIMJUPANCNFSM5GQTVHHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Could maybe find something useful looking at hwstat, can't seem to find the actual source files for it though... |
Beta Was this translation helpful? Give feedback.
-
found the solution on a freebsd mailinglist from 2007...
[image: image.png]
…On Sat, 23 Oct 2021 at 22:29, aristocratos ***@***.***> wrote:
Could maybe find something useful looking at hwstat
<https://www.freshports.org/sysutils/hwstat>, can't seem to find the
actual source files for it though...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R6CEVBCY6PXIFZINRLUIMLKBANCNFSM5GQTVHHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
only thing missing is now disk io...
…On Sat, 23 Oct 2021 at 22:29, aristocratos ***@***.***> wrote:
Could maybe find something useful looking at hwstat
<https://www.freshports.org/sysutils/hwstat>, can't seem to find the
actual source files for it though...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEB7R6CEVBCY6PXIFZINRLUIMLKBANCNFSM5GQTVHHQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Fixed up the Makefile and made it even with the OSX Makefile, should make it easier when it's all finally merged. Builds without any issues now with the OPTFLAGS from main as long as |
Beta Was this translation helpful? Give feedback.
-
Tried to find a way to find disk io stats per mountpoint (like linux/osx), but it doesn't seem possible. I can get stats per device (looking at iostat.c from FreeBSD), but as my system is using zfs, you don't even know from getmntinfo which device the mount comes from :-/. You get only 1 entry back form devstat: ada (the only disk in the machine), plus I fetch/print stats for bytes read/written. I will commit my devstat_* code, hopefully you find a way to make it useful (maybe only show per disk stats in io panel? don't know how to do that). Edit: here is a link to iostat.c : https://gitlab.unc.edu.ar/nicolaspapp/freebsd/-/blob/stable/12/usr.sbin/iostat/iostat.c |
Beta Was this translation helpful? Give feedback.
-
@aristocratos I've added a few commits to freebsd branch, no more mem leak, and disk IO is also fixed for all mountpoints (at least for ZFS). |
Beta Was this translation helpful? Give feedback.
-
Oh, nice! Have been taking a little break, will look over the PR later this week, some changes in the process sorting that needs updating in the collect for freebsd and I believe the process cpu usage is still incorrect, but I believe I know how to fix that. |
Beta Was this translation helpful? Give feedback.
-
I am running OPNsense which is FreeBSD 13.1. However, I get the following message, when I try to install btop:
I am very new to FreeBSD, so I am sorry for asking such a weird question. How do I install btop on FreeBSD (in this case OPNsense). I don't want to compile it on my FreeBSD router/firewall, and I don't even know whether the necessary dev packages can be installed either. |
Beta Was this translation helpful? Give feedback.
-
@aristocratos You probably noticed I started work on FreeBSD port ;-). Sorry to steal your work. It went surprisingly well, it's already fully functional. Everything can be done with syscalls.
Still to do:
Beta Was this translation helpful? Give feedback.
All reactions