Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

What does mean AverageThreadTokens in impala's query profile

avatar
Rising Star

Hi dear experts!

 

does anybodu know what does mean AverageThreadTokens in Impala's query profile?

 

thanks!

1 ACCEPTED SOLUTION

avatar
Rising Star

I found in source code:

 

https://github.com/boorad/impala/blob/master/be/src/runtime/plan-fragment-executor.h

 

// Average number of thread tokens for the duration of the plan fragment execution.

// Fragments that do a lot of cpu work (non-coordinator fragment) will have at

// least 1 token.  Fragments that contain a hdfs scan node will have 1+ tokens

// depending on system load.  Other nodes (e.g. hash join node) can also reserve

// additional tokens.

// This is a measure of how much CPU resources this fragment used during the course

// of the execution.

RuntimeProfile::Counter* average_thread_tokens_;

View solution in original post

2 REPLIES 2

avatar
Rising Star

I found in source code:

 

https://github.com/boorad/impala/blob/master/be/src/runtime/plan-fragment-executor.h

 

// Average number of thread tokens for the duration of the plan fragment execution.

// Fragments that do a lot of cpu work (non-coordinator fragment) will have at

// least 1 token.  Fragments that contain a hdfs scan node will have 1+ tokens

// depending on system load.  Other nodes (e.g. hash join node) can also reserve

// additional tokens.

// This is a measure of how much CPU resources this fragment used during the course

// of the execution.

RuntimeProfile::Counter* average_thread_tokens_;

avatar
Community Manager

I am happy to see that you found your answer. Thanks for sharing it. 🙂

Keep the questions coming