[ 
https://issues.apache.org/jira/browse/CASSANDRA-21730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maxim Muzafarov updated CASSANDRA-21730:
----------------------------------------
    Description: 
When kernel.perf_event_paranoid > 1 or kernel.kptr_restrict != 0, 
AsyncProfilerService.start() fails, these are the usual values inside 
containers.

Expected: Use itimer or ctimer instead of cpu when perf_events aren't usable.

{code}
[junit-timeout] Caused by: java.lang.IllegalStateException: Async-profiler 
experience likely affected. Kernel symbols are unavailable due to restrictions. 
Try 'sysctl kernel.perf_event_paranoid=1' and 'sysctl kernel.kptr_restrict=0' 
or its variation on your system to resolve the issue.
[junit-timeout]         at 
org.apache.cassandra.service.StartupChecks$AsyncProfilerKernelParamsCheck.execute(StartupChecks.java:1166)
[junit-timeout]         at 
org.apache.cassandra.service.AsyncProfilerService$1.apply(AsyncProfilerService.java:225)
[junit-timeout]         at 
org.apache.cassandra.service.AsyncProfilerService.run(AsyncProfilerService.java:495)
[junit-timeout]         at 
org.apache.cassandra.service.AsyncProfilerService.start(AsyncProfilerService.java:219)
[junit-timeout]         at 
org.apache.cassandra.service.AsyncProfilerRestrictedKernelParamsTest.testStartWithRestrictedKernelParamsDoesNotFailOnKernelCheck(AsyncProfilerRestrictedKernelParamsTest.java:106)
{code}

  was:
When kernel.perf_event_paranoid > 1 or kernel.kptr_restrict != 0, 
AsyncProfilerService.start() fails, these are the usual values inside 
containers.

Expected: Use itimer or ctimer instead of cpu when perf_events aren't usable.


> Async-profiler should fallback into itimer/ctimer in containers
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-21730
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21730
>             Project: Apache Cassandra
>          Issue Type: Bug
>            Reporter: Maxim Muzafarov
>            Priority: Normal
>
> When kernel.perf_event_paranoid > 1 or kernel.kptr_restrict != 0, 
> AsyncProfilerService.start() fails, these are the usual values inside 
> containers.
> Expected: Use itimer or ctimer instead of cpu when perf_events aren't usable.
> {code}
> [junit-timeout] Caused by: java.lang.IllegalStateException: Async-profiler 
> experience likely affected. Kernel symbols are unavailable due to 
> restrictions. Try 'sysctl kernel.perf_event_paranoid=1' and 'sysctl 
> kernel.kptr_restrict=0' or its variation on your system to resolve the issue.
> [junit-timeout]         at 
> org.apache.cassandra.service.StartupChecks$AsyncProfilerKernelParamsCheck.execute(StartupChecks.java:1166)
> [junit-timeout]         at 
> org.apache.cassandra.service.AsyncProfilerService$1.apply(AsyncProfilerService.java:225)
> [junit-timeout]         at 
> org.apache.cassandra.service.AsyncProfilerService.run(AsyncProfilerService.java:495)
> [junit-timeout]         at 
> org.apache.cassandra.service.AsyncProfilerService.start(AsyncProfilerService.java:219)
> [junit-timeout]         at 
> org.apache.cassandra.service.AsyncProfilerRestrictedKernelParamsTest.testStartWithRestrictedKernelParamsDoesNotFailOnKernelCheck(AsyncProfilerRestrictedKernelParamsTest.java:106)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to