LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2016, 01:10 PM   #1
navodi
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Rep: Reputation: Disabled
Smile fatal error: linsched.h: No such file or directory #include "linsched.h"


#include "linsched.h"
int main(int argc, char **argv)
{
int count, mask;
struct linsched_topology topo;
int type = parse_topology(argv[2]);

topo = topo_db[type];

// Allow all tasks to use any processor.
mask = (1 << count) - 1;

// Initialize the topology as provided by the script interpreter
linsched_init(&topo);

// Create five processor-bound tasks (sleep 10, busy 90)
create_tasks(5, mask, 10, 90);

// Create five I/O-bound tasks (sleep 90, busy 10)
create_tasks(5, mask, 90, 10);

// Create a busy real-time round-robin task with a priority of 90
linsched_create_RTrr_task( linsched_create_sleep_run(0,100), 90 );

// Run the simulation
linsched_run_sim(TEST_TICKS);

// Emit the task statistics
linsched_print_task_stats();

return 0;
}
fatal error: linsched.h: No such file or directory #include "linsched.h"
 
Old 06-10-2016, 02:15 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
So?

What is the topic?
 
Old 06-10-2016, 02:37 PM   #3
navodi
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
linSched stimulator

linSched
 
Old 06-10-2016, 05:05 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Building LinSched :
Code:
$ git clone https://github.com/jontore/LinSched
$ cd LinSched/
$ make
.... No errors here, the executable 'linsched' was created.
But please read the file README.

The later version "linsched/2.6.35" is discussed here ...
http://stackoverflow.com/questions/1...nk-to-checkout
Ref. https://www.google.com/webhp?hl=all&...sched%2F2.6.35



-

Last edited by knudfl; 06-10-2016 at 05:14 PM.
 
1 members found this post helpful.
Old 06-10-2016, 08:13 PM   #5
navodi
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
linSched stimulator

Thank you! i am using this stimulator to show my thread core selection algorithm (thread scheduling on a core) is working properly , but i havn't an good idea whether i can use this stimulator , an idea of another stimulator will be useful
 
Old 06-29-2016, 01:32 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
News : A package, linsched_2632-1_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Can also be installed to a 64bits OS ... and it works OK : $ linsched




-
 
1 members found this post helpful.
Old 07-04-2016, 06:21 AM   #7
navodi
LQ Newbie
 
Registered: Jun 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
i run the executable file you have provided , can you provide me the code and when i am running my own codes i am getting the above mentioned problem , how to install linsched files on to ubuntu
 
Old 07-04-2016, 10:05 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #7.

Installing Linsched : Download the package, and ...
cd Downloads/ && sudo gdebi -i linsched_2632-1_i386.deb
The package provides /usr/local/bin/linsched

The code is 'git clone https://github.com/jontore/LinSched', see post #4.


Ubuntu ? There are lots of versions. Please specify :
Code:
uname -a
cat  /etc/issue

-

Last edited by knudfl; 07-04-2016 at 02:50 PM.
 
  


Reply

Tags
linsched



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linSched navodi Linux - Newbie 2 06-10-2016 07:56 AM
[SOLVED] X: "loading extension glx" "no screens found" "fatal server error" (w/ nvidia driver) Geremia Slackware 7 12-29-2014 11:00 AM
installation of linsched simulator shri8 Linux - Newbie 5 06-27-2014 01:28 AM
[SOLVED] Can't compile Linsched on Arch, ld cannot find -lrt and -lpcre Gaidal Linux - Software 3 11-19-2013 08:06 AM
LXer: LinSched Advances For Testing The Linux Scheduler LXer Syndicated Linux News 0 10-15-2010 06:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration