Professional Documents
Culture Documents
ISKE2017 Short or Regular Paper
ISKE2017 Short or Regular Paper
ISKE2017 Short or Regular Paper
Abstract— Multicore systems are rapidly immerging as a new Fuzzy Inferencing (apply implication method), Aggregation of
paradigm for integrating both high performance systems and all outputs and Defuzzification.
embedded applications. A large field of research focuses now on
reconfigurable multicore architecture in order to find optimal The use of fuzzy logic to optimize the configuration of
solutions for improved performances such as energy hardware architecture was adopted because it offers some
consumption. A Perfect system would be able to create a balance advantages. First, detailed complex modeling of the system is
between optimum resources allocation and a particular not needed and human logic knowledge is captured. Second, it
workload. The dynamic frequency scaling has been a key offers easily adaptative and light weight design support
technique in exploiting the hardware configurable characteristics system.
of processors. However, for large class of applications in
embedded real time systems, the variable operating frequency This paper describes the contribution of the approach in
interferes with their deadline guarantee. In this paper, a novel three main parts: The first paragraph is a state of art about
fuzzy logic technique is presented to optimize real time system dynamic frequency scaling in multiprocessing architecture and
feasibility and energy consumption in multicore architecture about fuzzy logic in embedded systems. The second part is
based on operating frequency scaling. Tested on different dedicated to the proposed fuzzy technique architecture
periodic task sets generated with different system charges the presentation. Finally, simulation and results are detailed.
proposed technique is an intelligent decision aid system that
studies schedulability and energy consumption aware. II. RELATED WORK
Keywords— multi-core architecture; fuzzy logic; operating In real time embedded systems like portable medical
frequency; feasibility;energy consumption devices and cellular phones, where tasks must be completed
by some specified deadlines, most reconfiguration algorithms
I. INTRODUCTION and techniques do not consider real time constraints and are
based on solely average computational throughput [4].
In recent year, there has been a rapid and wide spread of
non traditional computing platforms, especially mobile and A. Fuzzy Logic and Embedde Systems
portable computing device. Embedded systems typically have
to fulfill timing constraints that are related to their application An objective of fuzzy logic has been to make computers
domain and usage scenarios. Constraints are usually specified think like people, fuzzy logic can deal with vagueness intrinsic
as the deadline to perform specific functions. Therefore, to human thinking and natural language [3]. Using fuzzy logic
embedded designers must be able to evaluate which design algorithms could enable machines to understand and respond
alternatives can fulfill those constraints and guarantee real to vague human concepts without having an exhaustive
time behavior. mathematical model. Almost every application, including
embedded control applications, could reap some benefits from
Simulation based techniques can be used to evaluate fuzzy logic. Its incorporation in embedded systems could lead
whether a particular MPSOC platform architecture is able to to enhanced performance, increased simplicity and
meet the timing constraints of an application. To guarantee the productivity.
best hardware adaptation, this paper proposes a fuzzy logic
reconfiguration technique to search a balance between power The use of heuristic based methodologies to design space
consumption and real time system schedulability. optimization for MPSoC involves the knowledge of processor
characteristics in order to converge toward a final solution.
A fuzzy inference system (FIS) is a system that uses fuzzy Qadri in [1][2] presented a fuzzy based reconfiguration for
set theory to map inputs into outputs. FIS uses a collection of MPSoc that takes into consideration energy consumption and
fuzzy membership functions and rules, instead of Boolean throughout of the real time system. This work argues the
logic, to reason about data. The functional operations in fuzzy advantages of integration fuzzy inference system that
expert system proceed in the following steps: Fuzzification, calculates the number of cores and the operating frequency. In
close loop architecture (fig ) the DSE is reconfigured until the Assuming a specified frequency scaling factor α (0<α≤1)
system is stabilized. simple static DFS condition given by (1) becomes:
3) Implementation in python
The fuzzy logic engine was implemented using python 3.4
conforming to TCE 61131-7 standard [7]. The free Fuzzy
logic module (Fuzzython) is an open source class library
which is optimized for faster response. System total energy
was calculated as the sum of each processor core energy
supposing that the application tasks don’t need cache. The
(a)
whole application class diagram is illustrated with fig. 3.
(b)
Fig. 4. Number of iterations result
Fig. 3. Class Diagram of the application developped in python
The main emphasis of the proposed fuzzy reconfiguration
technique is to assure balance between energy consumption
IV. SIMULATIONS AND RESULTS and system schedulability. However, mainly it represents
In order to perform the proposed architecture evaluation, a Decision Support System (DSS) for real time applications
task generator was used to generate a set of periodic tasks with periodic tasks feasability studies. The rule base was
within fixed total system load charge (random values with written while given schedulability test priority over energy
fixed sum). Task periods are generated with log-uniform consumption.
distribution between 1 and 1000. In order to fulfill our aims, the proposed algorithm starts
the iteration 0 with initial parameters i.e number of cores
TABLE VI. SIMULATION SETS (m=1), operating frequency (fi=fmax=33MHz), normalized
energy consumption (1) and total system utlization Usys
Simulation system calculated from the task model.
Periodic Task Random generation
Number of tasks Usys
Set method It begins modifying the configurable parametrs and it
Set 1 10 1.33 Rand fix sum completes the system configuration in two cases: the system
Rand fix sum utilisation is equal to one or it stays unvariant. The number of
Set 2 30 25.6 iterations needed to stabilise the system depends on real time
Set 3 60 14.066 Rand fix sum application number of tasks and on system utilisation value. In
fig 4. (a) (b), we could notice that the final configuration on the fuzzy system is unvariant and the application stills
the most important set (Set 4 with 100 tasks) needed 17 non schedulable the algorithm rises the number of
iterations which prooved that it stabilises quickly. Both the cores. It could be noticed that when set of periodic
system utilisation and the number of tasks affects tasks has important utilisation factor (Set 3 and Set 2)
proportionnaly the number of iterations. all cores are used with maximum operating frequency
scaling. The system is then stabilized with (m=16 and
fi=33 MHz). Our system is therefore not feasible under
this architecture (see fig. 6).
(b)
Fig. 5. Energy Consumption results
Fig. 7. Set 2 Results : n= 30 and Usys= 25.6
The impact of these iterations configuration on individual
To maintain this result simulation scheduling within
parametres is discussed as bellow:
Global EDF, Global LLF, EDZL and Pfair algorithms on Set 2
Energy Consumption : It is abvious that fuzzy were done conserving the Worst case computing time as the
algorithm gives importance to system feasibility rather charge needed by each task.
than optimizing energy consumption. Whith every
In another hand, when considering task periodic Set
value of m the fuzzy inference looks for the most
number 1 with n=10 and Un=1.33, the fuzzy reconfiguration
appropriate operating frequency which influences
system is stabilized after 5 iterations:
directly the energy consumption. Fig 5. Gives an
abvious conclusion about the correlation of the mean
energy consumption with the number of used cores in TABLE VII. RECONFIGURATION OF SET 1 (USYS=1.33)
one hand and with the importance of system utilization. Reconfiguration Results for Set 1
Number of Cores : Initiated at 1, the number of iteration
Un m Ep fi (MHz)
required cores is directly affected with system (Normalised)
utilization. When the operating frequency calculated by 1
0 1.33 1 33
Reconfiguration Results for Set 1 [9] Baker TP, Cirinei M, ‘A necessary and sometimes sufficient condition
for the feasibility of sets of sporadic hard-deadline tasks’, In:
iteration Proceedings of IEEE real-time systems symposium (RTSS), pp 178–
Un m Ep fi (MHz)
(Normalised) 190, 2006.
1 1.33 2 1 FIS = 33
V. CONCLUSION
In this paper a novel reconfiguration fuzzy based algorithm
for multicore architecture is presented. The proposed
technique was used to find an overall balance between the
feasibility of RT periodic application and energy consumption
of the multicore architecture. A higher priority was attributed
to system feasibility while writing the algorithm. It was
developed using python and Fuzzython module. The
simulation was executed in a multiprocessor run time
developed that we develop on python.
The results discussed bellow showed the capability and
usefulness of the detailed methodology especially when the
system utilization doesn’t exceed 27. Therefore, it can be
concluded that the proposed reconfigurable fuzzy logic can
produce an overall good performance where there is no need
for exhaustive mathematical model. However, it will be
interesting to study the effect of cache size and associativity
on shedulability test.
References
[1] M.Y. Qadri et al., “Fuzzy logic based energy and throughput aware
design space exploration for MPSoCs, “ Microprocess. Microsyst. J.
Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol. 2.
Oxford: Clarendon, 1892, pp.68-73, 2015.
[2] M.Y. Qadri et al., “Energy and throughputs aware fuzzy logic based
reconfiguration for MPSoC,“ Journal of intelligent and fuzzy systems.
(), 3rd ed., vol. 2. Oxford: Clarendon, 1892, pp.68-73, 2014.
[3] A. Ibrahim, Fuzzy Logic for Embedded Systems Applications,
Butterworth, Heinemann, Newton, MA, USA, 2003.
[4] Jorg Henkel and , Designing Embedded Processors: A lower Power
Perspective, Springer., 2007.
[5] Nicolat Navet and Bruno Grajar, Systemés temps réel, Hermes, 2006.
[6] Thiago R. da Rosa, Vivian Larrea, Ney Calazans, Fernando Gehm
Moraes: Power consumption reduction in MPSoCs through DFS, SBCCI
2012, 1-6.
[7] Intel, Embedded Ultra-Low Power Intel486? GX Processor Datasheet,
Intel
[8] IEC, International Standard: Programmable Controllers – Part 7: Fuzzy
Control Programming, International Electrotechnical Commission,
Geneva, Switzerland, iEC Standard, 2000.