[ 
https://issues.apache.org/jira/browse/CASSANDRA-16565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796802#comment-17796802
 ] 

Stefan Miklosovic commented on CASSANDRA-16565:
-----------------------------------------------

OK so I looked more closely and kernel version is parsed here. They are reading 
it from /proc/version, in my case it is 

{code}
Linux version 5.19.0-051900-generic (kernel@sita) (x86_64-linux-gnu-gcc-11 
(Ubuntu 11.3.0-5ubuntu1) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 
2.38.90.20220713) #202207312230 SMP PREEMPT_DYNAMIC Sun Jul 31 22:34:11 UTC 2022
{code}

and kernel version is in this case "5.19.0-051900-generic"

[~jlewandowski]'s patch in CASSANDRA-19196 reads it from "uname -r", which 
gives me

{code}
$ uname -r
5.19.0-051900-generic
{code}

which is exact same thing. I think that we do not need to implement anything in 
OSHI to read kernel's version which is good news.

(1) 
https://github.com/oshi/oshi/blob/master/oshi-core/src/main/java/oshi/software/os/linux/LinuxOperatingSystem.java#L180

> Remove dependency on sigar
> --------------------------
>
>                 Key: CASSANDRA-16565
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16565
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Build
>            Reporter: David Capwell
>            Assignee: Claude Warren
>            Priority: Normal
>             Fix For: 5.x
>
>         Attachments: signature.asc
>
>
> sigar is used to check if the environment has good settings for running C*, 
> but requires we bundle a lot of native libraries to perform this check (which 
> can also be done elsewhere).  This project also appears to be dead as the 
> last commit was around 6 years ago.
> With the move to resolve artifacts rather than commit them, removing this 
> dependency would remove majority of the artifacts fetched from GitHub.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to