any way to commit idle tasks in unix?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users any way to commit idle tasks in unix?
# 8  
Old 02-19-2008
>If unix simply lacks the functionality that windows has in this area--fine. Idle tasks suddenly running in the middle of your benchmark is usually a rare event. Its certainly more important that you do obvious simple things like make sure that no other non-idle tasks are running. But having an api for committing idle tasks like windows does certainly is icing on the cake, as it can eliminate the rare possibility.

Well the point is: This is the true difference between a true preemptive multitask/multiprocessing OS (like ****x) and almost and not quite yet (still has some cooperative behaviour) OS like Win*...
E.G. when Windows has decided to scan your drives, you cannot work till it gives you back the hand (cooperative...), at this point it never happens on a normally tuned unix... the time sharing is efficient under unix, not all that under windows... So you cant talk of lack of functionality that windows has... windows has added something to cure some insane behaviour...

Again my 2 cents...
# 9  
Old 02-19-2008
Quote:
Originally Posted by vbe
Well the point is: This is the true difference between a true preemptive multitask/multiprocessing OS (like ****x) and almost and not quite yet (still has some cooperative behaviour) OS like Win*...
E.G. when Windows has decided to scan your drives, you cannot work till it gives you back the hand (cooperative...), at this point it never happens on a normally tuned unix... the time sharing is efficient under unix, not all that under windows... So you cant talk of lack of functionality that windows has... windows has added something to cure some insane behaviour...
While, like any good person, I share your dislike of Microsoft, I am pretty sure that you are wrong for WinNT and successors: I was under the impression that they have always been fully preemptive; see
Preemption (computing) - Wikipedia, the free encyclopedia

People sometimes complain about the scheduler in NT, just as they do in, say, Linux, but I have never seen anyone claim that the NT kernel partly operates in cooperative multitasking mode. Find a good reference that proves otherwise, and I will be grateful for the enlightenment.

What usually happens in windows if an idle task kicks in during benchmarking is that both run concurrently (on a multi cpu box) and/or apparently concurrently (i.e. time sliced, especially if there is just a single cpu) and the presence of that now active idle task distorts your results to some extent.

I imagine that unix is just as vulnerable, at least in principle, tho perhaps not in practice (e.g. maybe typical unix boxes just don't have idle tasks that can suddenly become active; then again, they usually seem to have all sorts of background daemons...).
# 10  
Old 02-19-2008
Quote:
Originally Posted by fabulous2
Why? Reproducibility of results.

Generally, when you publish benchmarks, you do so running no other programs. You may also try to turn off many background services/processes/whatever.

You do this so that other people running your benchmark on the same hardware are more likely to get the same result as you.

The more stuff besides your actual benchmark that can possibly be running during benchmarking, the less reproducible your results become.

The exception to these comments are when you specifically want to see how your task runs on a loaded system of some kind, but this is less common.

If unix simply lacks the functionality that windows has in this area--fine. Idle tasks suddenly running in the middle of your benchmark is usually a rare event. Its certainly more important that you do obvious simple things like make sure that no other non-idle tasks are running. But having an api for committing idle tasks like windows does certainly is icing on the cake, as it can eliminate the rare possibility.
Ok. I don't want to speak for the entire Unix world Smilie , but I guess we are more concerned with performance under regular load, rather than matching numbers within platforms...

One method that you could use to achieve something vaguely similar would be to run your unix test on single user mode; only a portion of services run when the box is running on single user mode. Any service that your particular application may need can be started, and you could kill whatever service may pop up during your benchmark (mostly killing the cron daemon would do).
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

give ldap a/c during commit in commit line section

Is someone help me to achieve my goal I am working on a script actually script is working fine .The goal of script is restrict the user for something like while he is doing tocommit in repository he will commit with comment and with some parameter....here I have one more requirement and that is... (0 Replies)
Discussion started by: anuragpgtgerman
0 Replies

2. Shell Programming and Scripting

Commit in PL/SQL using Shell script

Hi All, I have written a shell script in which i am updating records in a table. It is a PL/SQL block. I have to use PL/SQL block as i am using bms_application_info.set_module package But the problem is once the script completes, i cannot see the updated records in Table. I mean result is... (0 Replies)
Discussion started by: Amit.Sagpariya
0 Replies

3. Shell Programming and Scripting

db2 commit for every 50 rows

I am writing a unix shell script for the archive purge job. During purging, the records will be deleted one by one. I didnot mention anything about db2 commit. By default, the records are commited one by one. Now I need to give commit for every 50 records deletion. The deletion part is as... (0 Replies)
Discussion started by: kmanivan82
0 Replies

4. UNIX for Advanced & Expert Users

cvs[commit aborted]:'root is not allowed to commit changes'

Hi , can u please any one of you give solution for this .. when am tryring to commit files from the CVS in Myeclipse J2ee Environment . that i coundnt able to commit and getting the Following error message cvs :'root' is not allowd to commit files' am using redhat enterprise 5 Server . (1 Reply)
Discussion started by: rksubash
1 Replies

5. Shell Programming and Scripting

cvs diff then commit

I would like to run a cvs diff to check which files have been changed and then cvs commit these changed files. Does anyone have a shell script which will automate this process? (1 Reply)
Discussion started by: alangibson
1 Replies

6. AIX

commit

good morning Can you explain to me what is a "commit" (aix 5.3) ? There is no man for this command. thank you (1 Reply)
Discussion started by: pascalbout
1 Replies

7. SCO

Scheduled tasks in SCO Unix 5.0.5

Hi. Am a unix 5.o.5 user. I need to schedule a program to be running everyday at 12 midnight. How do i proceed. I need help. Also what is the maximum size that sco unix can conveninetly handle. I keep getting this message. "Filesystem greater than device which it is curently located. Pls backup... (2 Replies)
Discussion started by: uzomaok
2 Replies

8. SCO

Identifiy and Kill Idle Unix(SCO) Process called externally

Hi, Please let us know of any possiblity of identifying and killing unix proces invoked externally (by an external tool which does not create a session). 'who' command gives idle time of sessions. But what we are looking for is idle time of a process. 'ps' command gives the elapsed/running... (1 Reply)
Discussion started by: vbalajis
1 Replies
Login or Register to Ask a Question