Motr  M0
m0_fom_locality Struct Reference

#include <fom.h>

Collaboration diagram for m0_fom_locality:
Collaboration graph

Data Fields

struct m0_fom_domainfl_dom
 
struct m0_tl fl_runq
 
size_t fl_runq_nr
 
struct m0_tl fl_wail
 
size_t fl_wail_nr
 
unsigned fl_foms
 
struct m0_sm_group fl_group
 
struct m0_chan fl_runrun
 
bool fl_shutdown
 
struct m0_loc_threadfl_handler
 
struct m0_tl fl_threads
 
struct m0_atomic64 fl_unblocking
 
struct m0_chan fl_idle
 
struct m0_bitmap fl_processors
 
int fl_idx
 
struct m0_addb2_machfl_addb2_mach
 
struct m0_addb2_hist fl_fom_active
 
struct m0_addb2_hist fl_runq_counter
 
struct m0_addb2_hist fl_wail_counter
 
struct m0_addb2_sensor fl_clock
 
struct m0_locality fl_locality
 
struct m0_sm_group_addb2 fl_grp_addb2
 
struct m0_chan_addb2 fl_chan_addb2
 

Detailed Description

A locality is a partition of computational resources dedicated to fom execution on the node.

Resources allotted to a locality are:

  • fraction of processor cycle bandwidth;
  • a collection of processors (or cores);
  • part of primary store.

Once the locality is initialised, the locality invariant, should hold true until locality is finalised.

See also
m0_locality_invariant()

Definition at line 255 of file fom.h.

Field Documentation

◆ fl_addb2_mach

struct m0_addb2_mach* fl_addb2_mach

Definition at line 297 of file fom.h.

◆ fl_chan_addb2

struct m0_chan_addb2 fl_chan_addb2

Definition at line 304 of file fom.h.

◆ fl_clock

struct m0_addb2_sensor fl_clock

Definition at line 301 of file fom.h.

◆ fl_dom

struct m0_fom_domain* fl_dom

Definition at line 256 of file fom.h.

◆ fl_fom_active

struct m0_addb2_hist fl_fom_active

Definition at line 298 of file fom.h.

◆ fl_foms

unsigned fl_foms

Total number of active foms in this locality. Equals the length of runq plus the length of wail plus the number of M0_FOS_RUNNING foms in all locality threads.

Definition at line 271 of file fom.h.

◆ fl_group

struct m0_sm_group fl_group

State Machine (SM) group for AST call-backs

Definition at line 274 of file fom.h.

◆ fl_grp_addb2

struct m0_sm_group_addb2 fl_grp_addb2

Definition at line 303 of file fom.h.

◆ fl_handler

struct m0_loc_thread* fl_handler

Handler thread

Definition at line 289 of file fom.h.

◆ fl_idle

struct m0_chan fl_idle

Definition at line 293 of file fom.h.

◆ fl_idx

int fl_idx

Definition at line 296 of file fom.h.

◆ fl_locality

struct m0_locality fl_locality

Definition at line 302 of file fom.h.

◆ fl_processors

struct m0_bitmap fl_processors

Resources allotted to the partition

Definition at line 295 of file fom.h.

◆ fl_runq

struct m0_tl fl_runq

Run-queue

Definition at line 259 of file fom.h.

◆ fl_runq_counter

struct m0_addb2_hist fl_runq_counter

Definition at line 299 of file fom.h.

◆ fl_runq_nr

size_t fl_runq_nr

Definition at line 260 of file fom.h.

◆ fl_runrun

struct m0_chan fl_runrun

Re-scheduling channel that the handler thread waits on for new work.

See also
https://github.com/dspinellis/unix-history-repo/blob/Research-V5/usr/sys/ken/slp.c#L70 for the explanation of the name.

Definition at line 282 of file fom.h.

◆ fl_shutdown

bool fl_shutdown

Set to true when the locality is finalised. This signals locality threads to exit.

Definition at line 287 of file fom.h.

◆ fl_threads

struct m0_tl fl_threads

Idle threads

Definition at line 291 of file fom.h.

◆ fl_unblocking

struct m0_atomic64 fl_unblocking

Definition at line 292 of file fom.h.

◆ fl_wail

struct m0_tl fl_wail

Wait list

Definition at line 263 of file fom.h.

◆ fl_wail_counter

struct m0_addb2_hist fl_wail_counter

Definition at line 300 of file fom.h.

◆ fl_wail_nr

size_t fl_wail_nr

Definition at line 264 of file fom.h.


The documentation for this struct was generated from the following file: