scheduler

LinSched source for 2.6.35 kernel

偶尔善良 提交于 2019-11-28 02:21:16
问题 I have been trying to obtain the source for the version of LinSched (user space simulator for the CFS scheduler) for kernel 2.6.35 but I am not able to find it anywhere. This is the original git repo of LinSched for 2.6.32, which mentions that this version is deprecated and I should refer to here. Unfortunately, this link is broken. I also tried cloning the repo mentioned here, but git clone git://google3-2.osuosl.org/linsched/2.6.35.git throws an error: "fatal: Unable to look up google3-2

Passing arguments to oracle stored procedure through scheduler job

别等时光非礼了梦想. 提交于 2019-11-28 01:22:49
I have a stored procedure which is being called from a dbms job. i.e. DBMS_SCHEDULER.RUN_JOB ('Procedure_JB', FALSE); A java code stored procedure, which after doing some stuff, kicks off Procedure_JB asynchronously. And then this Procedure_JB calls Procedure_PRogram and then the program would call the stored procedure. How can i pass arguments to my stored procedure? The arguments which i have to pass to the job are from java. Define your job Procedure_JB to accept arguments. Then use dbms_scheduler.set_job_argument_value to define the value of the arguments you want to pass into the program

WPF schedule control

大城市里の小女人 提交于 2019-11-28 00:26:53
问题 I'm looking for a very simple schedule control for WPF. What I need is something like daypilot or the Outlook scheduler but with minimal functionality. I simply want to show a day separated in 24 interval (one for each hour). Inside these 24 hours, the user has to define events/task, non-overlapping each other. That's for theory. Practically, I want to write a control where the user can define inside a day and for each day a week, how much a kWh of electricity costs. I found a lot of samples,

How to run a thread repeatedly after some interval

坚强是说给别人听的谎言 提交于 2019-11-27 22:34:06
I want to run a thread (Which does some time consuming task in background and does NOT update UI) it just downloads some files form the internet and it is independent from the UI. I want to run this thread repeatedly after some time interval. How can i do this, I have thread something like below: boolean mResult =false; void onCreate() { DownloadThread mDownloadThread = new DownloadThread(); mDownloadThread.start(); } class DownloadThread extends Thread implements Runnable { public void run() { // My download code mResult = result; } } Do i need to use Handler for implementing this? Option 1:

Verify HTTP request from Google Cloud Scheduler

混江龙づ霸主 提交于 2019-11-27 18:53:41
问题 What's the process for verifying the HTTP request from Google Cloud scheduler? The docs (https://cloud.google.com/scheduler/docs/creating) mention you can create a job with a target of any publicly available HTTP endpoint but do not mention how the server verifies the cron/scheduler request. 回答1: [Update May 28, 2019] Google Cloud Scheduler now has two command line options: --oidc-service-account-email=<service_account_email> --oidc-token-audience=<service_endpoint_being_called> These options

Would process with more threads on linux have more cpu time than process with one thread?

泪湿孤枕 提交于 2019-11-27 18:52:50
问题 Would a process with more threads on Linux have more cpu time than a process with one thread? In Linux processes and threads are described by a task struct, and scheduling is based on tasks. I found also this: When a new process is created, do_fork() sets the counter field of both current (the parent) and p (the child) processes in the following way: current->counter >>= 1; p->counter = current->counter; In other words, the number of ticks left to the parent is split in two halves, one for

Context switch internals

浪尽此生 提交于 2019-11-27 16:38:08
I want to learn and fill gaps in my knowledge with the help of this question. So, a user is running a thread (kernel-level) and it now calls yield (a system call I presume). The scheduler must now save the context of the current thread in the TCB (which is stored in the kernel somewhere) and choose another thread to run and loads its context and jump to its CS:EIP . To narrow things down, I am working on Linux running on top of x86 architecture. Now, I want to get into the details: So, first we have a system call: 1) The wrapper function for yield will push the system call arguments onto the

Setting absolute limits on CPU for Docker containers

筅森魡賤 提交于 2019-11-27 15:36:28
问题 I'm trying to set absolute limits on Docker container CPU usage. The CPU shares concept ( docker run -c <shares> ) is relative, but I would like to say something like "let this container use at most 20ms of CPU time every 100ms. The closest answer I can find is a hint from the mailing list on using cpu.cfs_quota_us and cpu.cfs_period_us . How does one use these settings when using docker run ? I don't have a strict requirement for either LXC-backed Docker (e.g. pre0.9) or later versions, just

What makes a kernel/OS real-time?

只谈情不闲聊 提交于 2019-11-27 15:17:22
问题 I was reading this article, but my question is on a generic level, I was thinking along the following lines: Can a kernel be called real time just because it has a real time scheduler? Or in other words, say I have a linux kernel, and if I change the default scheduler from O(1) or CFS to a real time scheduler , will it become an RTOS? Does it require any support from the hardware? Generally I have seen embedded devices having an RTOS (eg VxWorks, QNX), do these have any special provisions/hw

What is the concept of vruntime in CFS

一笑奈何 提交于 2019-11-27 13:14:15
问题 I have been reading about Linux Kernel and CFS scheduler in the kernel. I came across vruntime (virtual runtime) that is the core concept behind CFS scheduler. I read from “ Linux Kernel Development ” and also from other blogs on internet but could not understand the basic calculations behind the vruntime . Does vruntime belong to a particular process or does it belong to a group of process with same nice values . What is the weighting factor and how is it calculated? I went through all these