Skip to content

Add freebsd sysinfo for telemetry#7985

Merged
bkchr merged 1 commit intoparitytech:masterfrom
mooselabs:add-freebsd-sysinfo
Jun 10, 2025
Merged

Add freebsd sysinfo for telemetry#7985
bkchr merged 1 commit intoparitytech:masterfrom
mooselabs:add-freebsd-sysinfo

Conversation

@firegrass
Copy link
Copy Markdown
Contributor

@firegrass firegrass commented Mar 21, 2025

Description

Gathering hardware information on FreeBSD

Integration

N/A (I think)

Review Notes

Please note FreeBSD does not use the linux kernel, nor is it's kernel versioned differently as in linux distros.

Checklist

  • My PR includes a detailed description as outlined in the "Description" and its two subsections above.
  • My PR follows the labeling requirements of this project (at minimum one label for T required)
    • External contributors: ask maintainers to put the right label on your PR.
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank you for your contribution!

✄ -----------------------------------------------------------------------------

@firegrass firegrass requested a review from koute as a code owner March 21, 2025 00:23
@cla-bot-2021
Copy link
Copy Markdown

cla-bot-2021 bot commented Mar 21, 2025

User @firegrass, please sign the CLA here.

@koute koute requested a review from a team March 21, 2025 00:46
@bkchr
Copy link
Copy Markdown
Member

bkchr commented Mar 31, 2025

@firegrass could you answer the questions?

@firegrass
Copy link
Copy Markdown
Contributor Author

@firegrass could you answer the questions?

@bkchr sorry for the delay. I need to make a few code changes to improve physical cores counting.

@firegrass firegrass marked this pull request as draft March 31, 2025 16:33
@firegrass firegrass force-pushed the add-freebsd-sysinfo branch from dcdb076 to 1ce1e78 Compare April 24, 2025 11:21
sysinfo.cpu = Some(cpu_model);
}

if let Some(cores) = sysctl_output("kern.smp.cores") {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed this from hw.ncpu to kern.smp.cores consistently handle SMP regardless of how it is configured in the bios. I have tested this on our available freebsd hosts and hardware.

@firegrass
Copy link
Copy Markdown
Contributor Author

Hey @bkchr - I have replied to your comments. TIA.

@firegrass firegrass marked this pull request as ready for review April 24, 2025 11:59
Copy link
Copy Markdown
Contributor

@koute koute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@firegrass
Copy link
Copy Markdown
Contributor Author

LGTM

Thanks @koute. Anything you need from me? Or is this just waiting for a second reviewer?

@koute
Copy link
Copy Markdown
Contributor

koute commented May 2, 2025

You need one more review, the CI tests need to pass, and I think you might also need a prdoc.

@koute koute requested a review from a team May 2, 2025 06:13
Copy link
Copy Markdown
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label May 2, 2025
@bkchr
Copy link
Copy Markdown
Member

bkchr commented May 2, 2025

@firegrass we need a prdoc. Also the formatting isn't correct. We can not push to your branch because it belongs to some organization. So, you need to do this.

@github-actions github-actions bot requested review from bkchr, koute and lexnv June 10, 2025 18:35
@github-actions
Copy link
Copy Markdown
Contributor

Review required! Latest push from author must always be reviewed

@firegrass firegrass force-pushed the add-freebsd-sysinfo branch 4 times, most recently from d8ced9d to 4004bcf Compare June 10, 2025 18:56
@firegrass
Copy link
Copy Markdown
Contributor Author

@bkchr sorry for the delay - PR should be good to merge now. Thanks 🙏

@firegrass firegrass force-pushed the add-freebsd-sysinfo branch from 4004bcf to 5fce876 Compare June 10, 2025 19:00
@firegrass firegrass force-pushed the add-freebsd-sysinfo branch from 5fce876 to 798c00c Compare June 10, 2025 19:06
@bkchr
Copy link
Copy Markdown
Member

bkchr commented Jun 10, 2025

@firegrass Ser, sorry to tell you that the cargo fmt job is still not happy 🙈

@firegrass firegrass force-pushed the add-freebsd-sysinfo branch from 798c00c to 526c9b8 Compare June 10, 2025 19:41
@github-actions github-actions bot requested a review from bkchr June 10, 2025 19:42
@firegrass firegrass force-pushed the add-freebsd-sysinfo branch from 526c9b8 to 64e9130 Compare June 10, 2025 19:43
@firegrass
Copy link
Copy Markdown
Contributor Author

@bkchr sorry, I had to force pushed again. Fighting GitHub for GPG 'Verified'

@bkchr bkchr added this pull request to the merge queue Jun 10, 2025
Merged via the queue into paritytech:master with commit 934d513 Jun 10, 2025
244 of 245 checks passed
pgherveou pushed a commit that referenced this pull request Jun 11, 2025
# Description

Gathering hardware information on FreeBSD

## Integration

N/A (I think)

## Review Notes

Please note FreeBSD does not use the linux kernel, nor is it's kernel
versioned differently as in linux distros.

# Checklist

* [x] My PR includes a detailed description as outlined in the
"Description" and its two subsections above.
* [ ] My PR follows the [labeling requirements](

https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
) of this project (at minimum one label for `T` required)
* External contributors: ask maintainers to put the right label on your
PR.
* [x] I have made corresponding changes to the documentation (if
applicable)
* [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank
you for your contribution!

✄
-----------------------------------------------------------------------------
ordian added a commit that referenced this pull request Jun 12, 2025
* master: (62 commits)
  release/build-macos-binaries: add missing FEATURES argument  (#8816)
  Add XCM Precompile to `pallet-xcm` (#8693)
  [Release|CI/CD] Exclude test runtimes from the runtimes build (#8820)
  Add freebsd sysinfo for telemetry (#7985)
  release-reusable-rc-build: add optional `features` input that can be considered for nodes building (#8755)
  [Staking] Cleanups and some improvements (#8701)
  Fix typos in 3 files in Implementers Guide (#8799)
  Update `RemoteExporter` docs to reflect removal of `forward_id_for` (#8795)
  Snowbridge: enforce fee when registering Polkadot native asset (#8725)
  Bump the ci_dependencies group across 1 directory with 7 updates (#8788)
  Docker hub 'master' image short sha (#8790)
  [Release|CI/CD] Combine branch-off and RC automation flows (#8754)
  Move Transaction depth limit checks (#8750)
  Add genesis presets for remaining runtimes in polkadot-parachain-bin (#8426)
  Do not make pallet-identity benchmarks signature-dependent (#8179)
  Introduction of Approval Slashes [Disabling Strategy Stage 4] (#6827)
  [AHM] Prepare For Westend Cleanup (#8715)
  Actually use RP offset in YAP parachain (#8745)
  [AHM] Relax the requirement for RC-Client to receive +1 session reports (#8702)
  Don't read storage items in logging (#8749)
  ...
firegrass added a commit to mooselabs/polkadot-sdk that referenced this pull request Aug 21, 2025
# Description

Gathering hardware information on FreeBSD

## Integration

N/A (I think)

## Review Notes

Please note FreeBSD does not use the linux kernel, nor is it's kernel
versioned differently as in linux distros.

# Checklist

* [x] My PR includes a detailed description as outlined in the
"Description" and its two subsections above.
* [ ] My PR follows the [labeling requirements](

https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
) of this project (at minimum one label for `T` required)
* External contributors: ask maintainers to put the right label on your
PR.
* [x] I have made corresponding changes to the documentation (if
applicable)
* [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank
you for your contribution!

✄
-----------------------------------------------------------------------------
firegrass added a commit to mooselabs/polkadot-sdk that referenced this pull request Sep 19, 2025
# Description

Gathering hardware information on FreeBSD

## Integration

N/A (I think)

## Review Notes

Please note FreeBSD does not use the linux kernel, nor is it's kernel
versioned differently as in linux distros.

# Checklist

* [x] My PR includes a detailed description as outlined in the
"Description" and its two subsections above.
* [ ] My PR follows the [labeling requirements](

https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
) of this project (at minimum one label for `T` required)
* External contributors: ask maintainers to put the right label on your
PR.
* [x] I have made corresponding changes to the documentation (if
applicable)
* [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank
you for your contribution!

✄
-----------------------------------------------------------------------------
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
# Description

Gathering hardware information on FreeBSD

## Integration

N/A (I think)

## Review Notes

Please note FreeBSD does not use the linux kernel, nor is it's kernel
versioned differently as in linux distros.

# Checklist

* [x] My PR includes a detailed description as outlined in the
"Description" and its two subsections above.
* [ ] My PR follows the [labeling requirements](

https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
) of this project (at minimum one label for `T` required)
* External contributors: ask maintainers to put the right label on your
PR.
* [x] I have made corresponding changes to the documentation (if
applicable)
* [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

You can remove the "Checklist" section once all have been checked. Thank
you for your contribution!

✄
-----------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants