This repository has been archived on 2024-04-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
elektron/docs/data/withSpsEnabled/TaskClassificationOverhead.md
Bhargavi Hanumant Alandikar 3543960689 Elektron Logging library (#16)
switch to logrus for logging.

replaced old logging library with a wrapper around logrus.
We now just need to use the exported Log(...) and Logf(...) from the logging/
package that wraps around a set of loggers constituting a chain (following COR).
Loggers are configured using a YAML file that specifies the following.
1. enabled/disabled
2. whether the message should be logged on console.
3. filename extension.
4. minimum log level.

Retrofitted source code to now use the updated logging library.
Updated the documentation with information regarding the specification
of the log config file.

Currently, the log format in the config file is not adhered to. This is going to be
addressed in a future commit.
2019-12-09 20:15:33 -05:00

854 B

Task Classification Overhead

To select the next scheduling policy to switch to, the tasks are classified and then the task distribution is determined, as mentioned here. Based on the task distribution, the most appropriate scheduling policy is selected. The time taken to classify the tasks and determine the task distribution is logged as task classification overhead.

The logs are written to a file named <logFilePrefix>_<timestamp>_classificationOverhead.log, where

  • logFilePrefix is the prefix provided using the -logPrefix option.
  • timestamp corresponds to the time when Elektron was run.

The format of the data logged is as shown below.

[<loglevel>]: <yyyy-mm-dd> <hh:mm:ss> Overhead in microseconds=<overhead>

Note: The classification overhead is logged in microseconds.