Programming :: Scheduling Through Round Robin?
May 10, 2011
Does anyone know how to run 2 threads with round robin scheduling. & can we get the time of these threads when they are context switching. That means I want to know at how much time each thread is taking to run
View 3 Replies
ADVERTISEMENT
Mar 24, 2011
if i am having say 10 number of linux machine over the network and want to setup password free SSH in round robin fashion means ssh from any machine to either machine. one way to do is generate the public key on every machine and put on other machine. is there any other shorter and simple way to do it?
View 5 Replies
View Related
Dec 9, 2010
I'm trying to configure my Red Hat server to use port bonding for two interfaces going to a switch, and I followed this redhat guide [URL]...-redhat-server but when I attempt to bring the bond up, it simply uses mode 0 (round robin) instead of mode 1, which I specifically configured in /etc/modprobe.conf by doing
Code:
options bond0 mode=1
Any ideas why the bond would continue to use round robin when I set it to active-backup?
View 2 Replies
View Related
Apr 30, 2011
Here is the senario...
2 round robin dns servers
x.x.x.1 mydomain.com (hostname)
x.x.x.2 mydomain.com (hostname)
My problem is that when I try and send an email that is part of the domain, it ends up trying to deliver it locally. I realize it is supposed to, but I don't want that for non-users of the server.
I want to be able to deliver certain emails []@mydomain.com remotely. (info@mydomain.com)
exim4 setup "internet site; mail is sent and received directly using SMTP". This works well as long as it is not an email from mydomain.com.
Is there a way to have exim check the users first and then deliver based on local user or not?
Next question. Is having the domain name as the hostname the best way to setup a round robin? (web server)
View 1 Replies
View Related
Dec 2, 2008
So we have DNS round robin set up for 4 servers. If we ping dns name (basically an alias) server_connect it resolves with different IP address in round robin format. I.E. x.x.x.1 x.x.x.2 for the 4 different server IP addresses. When we do nslookup server_connect it will come back first time as server1_connect server2_connect through server4_connect so the server is able to resolve through ping and nslookup resolving the initial dns name (alias) to the dns name associated in the round robin. Problem is when we try to connect with http or telnet it comes back host unrecognized. I can put one of the 4 round robin servers in /etc/hosts and it connects fine so I'm thinking that either one of three things.
1) ttl
2) It does double connection first to identify itself to the round robin server and then handshake but second time it hits for the handshake the IP and dns name is different than what it expected so it fails.
3) Since we are trying to telnet to dns alias and it is returning different dns name it fails.
2 and 3 seem most promising but now I'm at a stand still.Anyone else come across this issue and if so how did you resolve.
View 1 Replies
View Related
Nov 16, 2010
we use round robin DNS service for setting up a high availability solution ? i want to know whether it will work.
View 1 Replies
View Related
Feb 10, 2010
i think we can simulate preemption by using 2 different priority thread, am i true? I just try these scenario :
1. Create Thread A with priority 99 , SCHED_FIFO..
2. Create Thread B with priority 4 , SCHED_FIFO
Thread A started and doing some busy work.. I guess that Thread B wouldn't start until thread A finished, but I get thread B can run before Thread A finished (It just like a common task switching).. I'm sure my 2 thread has right priority. and if thread B is doing some work and if i yield it to thread A, it should preempt it but this doesnt happen, do someone kno wats happening?
View 1 Replies
View Related
Mar 23, 2010
I have a program which is uses sigaction to register for a SIGIO signal (for incoming data on a fd) with an appropriate event handler. I also create a new detached thread 'B' that does some work with the received data. Normally the thread B runs properly. But when my event handler is called (because a there is new incoming data), after the event is handled, the thread B is not called immediately. There is a noticeable delay of the order of many seconds before it is scheduled again .During this delay, my program is doing nothing.
What am i doing wrong? Is there someway i can run thread B as soon as the event is handled (and assuming no other work is to be carried out)?
View 3 Replies
View Related
May 4, 2011
I have a timer thread, and when it expires, it sets a flag. The only problem is, if any higher priority thread comes in between, then the timer is not expired in real time.Thus i want to set a highest priority to my thread. Now, i know 2 algos, which can make my thread in real time are: SCHED_FIFO and SCHED_RR.
So, here are my queries: 1) Which scheduling algo is best suited for this purpose? 2) Is it guaranted to work in real time if i use that algo (you suggest in 1) and set the max_priority by getting the maximum settable priority for that particular algorithm using, int sched_get_priority_max(int policy);
View 2 Replies
View Related
Sep 9, 2009
I am new to thread programming. I need to generate one thread in one process using posix thread. Which scheduling and priority do i need to use? I want to generate the thread with the lowest priority. As i know there are 3 scheduling policy available SCHED_FIFO, SCHED_RR or SCHED_OTHAR.
View 1 Replies
View Related
Jan 12, 2011
I am working on a large program in C to run on Puppy Linux. I have multiple pthreads running. I want to be able to set the pthread SCHED_POLICY and priority in my program but I want a user to be able to run the program without root privilege.
Using a sticky bit and root ownership gives the user too much power because they will be able to write and compile their own scripts. Is there a way to use 'sudo' when I set the thread parameters from my program or something like this?
View 1 Replies
View Related
Jan 20, 2011
The last round of updates to 10.04 changed the initrd image, which I wasn't expecting. How do I check the updates to make sure that this is in fact the expected behavior? I.e., how do I go back and check which updates were supposed to have been installed, check what was actually installed, and see which one modified the initrd and why?
View 4 Replies
View Related
Feb 23, 2011
I have been trying to install on my toshiba satellite c655 laptop the ubuntu operating system. Anytime it gets to where i can use it as a live DVD and I would want to install, it gets to stage 3 of 7 and gets stuck. No error messages are given, the install dialog can be minimized and other task done but the installation will never continue. Anyone with idea about how to go round it.
View 3 Replies
View Related
Jun 2, 2011
I want to use awk to list all the mount points, disk size and space available. Now I have all that info but I want to round the totals, so there is no delimiters, how can I do that?
PHP Code:
#!/bin/sh
date
df=`df -Pl | grep "^/dev" | awk '{print $6, $2/1024 , $4/1024}' | sed "s/%//"`
echo "$df"
[Code]...
View 6 Replies
View Related
Aug 8, 2010
I have a dualboot system with Debian, how can I make both systems read and write ALL files on the computer?openSUSE can't open the Debian's HDD and the other way round.. how can I change that?
View 9 Replies
View Related
Sep 20, 2011
I have a large amout of data (several GB) on a remote drive, that is transparently mounted via nfs. I'd like to copy these files into a subdirectory of where they are already residing, so everything stays on the same physical disk. For that reason, I would like to prevent an unnecessary round trip over the network.
It seems that cp files* subdir does the naive thing and reads all the data into memory and then writes it back. Is that true? Is there a special command that does the actual copying entirely on the server the disk is physically connected to?
View 1 Replies
View Related
Apr 29, 2010
The buttons on the left of the windows of Ubuntu 10.04 are square and not round?
View 1 Replies
View Related
Oct 3, 2010
Can anyone recommend a good all round flatbed scanner, (for 11.3)?Main use would be for document scanning, but should be able to cope with photos occasionally.
View 3 Replies
View Related
Sep 24, 2010
notice that the shutdown icon is not really round(on the upper right corner)? Have they fixed this one yet?
View 4 Replies
View Related
Jan 23, 2011
Is there any tools in linux same as "http-ping. This tool shows for any request :
1-The HTTP return code (and its brief textual description)
2-The number of bytes returned by the server (excluding headers)
3-The time taken to complete the request (i.e. round-trip time)
View 5 Replies
View Related
Jan 9, 2011
I have a cron job to schedule the task on the third sunday of the month.I saw the previous threads but didn't find any solution.
How the cron syntax can be written.
View 14 Replies
View Related
Mar 10, 2010
We are seeing some strange behavior on a Set top Box with the scheduling of tasks. We use 2.6.12 kernel. The issue is when we create a Task, say task1 with a priority of 46.But,this task is not Scheduled to run by the scheduler right away. It gets chance to run only after sometime. What we see here is that I create many other tasks with lower priority than task1,but they are immediately scheduled. Ideally, the task1 should have got scheduled before certain other low priority tasks as it has higher priority. Any patch is available wrt this?
View 3 Replies
View Related
May 28, 2009
kindly give me example of earliest deadline first scheduling?
View 5 Replies
View Related
May 3, 2011
I want to change linux scheduling algorithm for some of my processes but when I click on processes in ksysguard and click renice project, all of the processes use normal level cpu scheduling. Why is it such a thing and there is no priority?
View 2 Replies
View Related
Apr 1, 2010
how can I use sar in order to get information about the scheduling?
View 1 Replies
View Related
Apr 16, 2010
what is disk scheduling and how does it work? and how is it done in ubuntu 9.1
View 2 Replies
View Related
May 5, 2010
I am wondering about scheduling audio playback under Ubuntu. The background is this: My birthday is fast approaching, and I always try to do something to remember the best birthday gift I ever received, that being the Apollo 11 mission; Neil and Buzz landed on my 12th birthday.
Anyway, I have a wagonload of audio from nasa.gov and would like to schedule the MP3s to play in real time. 'at' won't do it, at least with 'mplayer'; I've tried. I suspect that because there is no controlling terminal for jobs run under 'at', the audio has no place to go. Is there some way to get a controlling terminal for these audio playback jobs, or specify a destination to some player?
View 1 Replies
View Related
Mar 23, 2011
I can not get 'crontab' to work.Below is the results of 'crontab -e':
Code:
10 * * * * /usr/bin/sigrot
0 18 * * 5 /usr/bin/tff-meeting-mail.sh
[code]....
View 2 Replies
View Related
May 24, 2011
I was searching for many time but haven't found any solution. Cron would be great, but it allows only steps in range 1-59 minutes. Is there any mode to run something exactly every 73 minutes?
The second i need (the same problem) to run program little more than every 12 hours, it might be in steps of 12 hours and 4 minutes (but 13 hours is much too much).
View 4 Replies
View Related
Nov 24, 2010
Can anyone tell me where i can find patch for WFQ scheduling in ns2
View 3 Replies
View Related