Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #10203 > unrolled thread
| Started by | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| First post | 2011-11-24 05:44 -0800 |
| Last post | 2011-11-24 21:46 -0500 |
| Articles | 13 — 10 participants |
Back to article view | Back to comp.lang.java.programmer
Toward more ruly background apps Roedy Green <see_website@mindprod.com.invalid> - 2011-11-24 05:44 -0800
Re: Toward more ruly background apps Silvio Bierman <silvio@moc.com> - 2011-11-24 16:27 +0100
Re: Toward more ruly background apps Roedy Green <see_website@mindprod.com.invalid> - 2011-11-24 08:41 -0800
Re: Toward more ruly background apps Knute Johnson <nospam@knutejohnson.com> - 2011-11-24 09:18 -0800
Re: Toward more ruly background apps "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> - 2011-11-24 07:34 -0800
Re: Toward more ruly background apps Tassilo Horn <tassilo@member.fsf.org> - 2011-11-24 17:12 +0100
Re: Toward more ruly background apps Patricia Shanahan <pats@acm.org> - 2011-11-24 09:24 -0800
Re: Toward more ruly background apps Roedy Green <see_website@mindprod.com.invalid> - 2011-11-24 15:36 -0800
Re: Toward more ruly background apps Fistulina Hepatica <f.hep3@spore.dispersal.org> - 2011-11-24 22:29 -0500
Re: Toward more ruly background apps "Manh Tuong Lewis Nguyen" <matln@sfu.ca> - 2011-11-25 03:01 +0000
Re: Toward more ruly background apps thoolen <tholen01@gmail.com> - 2011-11-25 01:19 -0800
Re: Toward more ruly background apps Roedy Green <see_website@mindprod.com.invalid> - 2011-11-29 16:47 -0800
Re: Toward more ruly background apps Arne Vajhøj <arne@vajhoej.dk> - 2011-11-24 21:46 -0500
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2011-11-24 05:44 -0800 |
| Subject | Toward more ruly background apps |
| Message-ID | <2qhsc7d9ib953i1tnipa8jm7i25jbdfhpo@4ax.com> |
I usually have at least one active background task going, e.g. defrag, build, search and replace script, indexing, backup, Jet compile, program load, source code tidy, email fetch, FTP upload, macro expansion to regenerate my website .... The problem is these often interfere with my foreground work. I hit a key and nothing happens for several seconds. I find it quite hard to type word without the instant visual feedback. The background task may be hogging the CPU or the disk. Back in the 60s I learned about what OS's were supposed to do to ameliorate this, giving higher priority to i/o bound tasks and higher priority to tasks a human was sitting there waiting for. I am using Windows 7 on a dual CPU which was orders of magnitude resources to play with that the computers of that day, but it does not seem to be doing all that well. So some questions: 1. Is there anything I can do to make my OWN background Java apps better behaved, to notice disk or CPU is tight and back off? or lower their priority to CPU or disk? 2. Is there anything I can do to configure some sort of allocation of the CPU and disk where various combos of app are running? 3. Is there anything I can do quickly when my computer is sluggish to throttle but not kill the culprit? 4. Do Linux people fare any better? I imagine most windows users have programs in the background, but they would nearly always be idle. This problem is likely not high on the MS priority list. -- Roedy Green Canadian Mind Products http://mindprod.com I can't come to bed just yet. Somebody is wrong on the Internet.
[toc] | [next] | [standalone]
| From | Silvio Bierman <silvio@moc.com> |
|---|---|
| Date | 2011-11-24 16:27 +0100 |
| Message-ID | <4ece6262$0$6853$e4fe514c@news2.news.xs4all.nl> |
| In reply to | #10203 |
On 11/24/2011 02:44 PM, Roedy Green wrote: > > 4. Do Linux people fare any better? I imagine most windows users have > programs in the background, but they would nearly always be idle. This > problem is likely not high on the MS priority list. I run Linux on a laptop with an Intel i7 inside (where else would it be?). I usually have a running VirtualBox that runs either WindowsVista or Windows7 to have an IE/Windows client test environment for my web application development. Windows is usually quite idle except for a running IE and sometimes OpenOffice but I have to assign at least two of my eight cores and plenty of memory to it to have any decent response when typing etc. On the Linux side I never have any responsiveness problems like that. Nothing is perfect, though. There seems to be a bug somewhere that disables my touchpad permanently every now and then during typing which is very annoying when the laptop is actually, well, on my lap. Luckily in Linux this can always be solved with some command line that can be attached to a key stroke so a simple CTRL+ALT+` fixes that. Is there a particular reason you run Windows?
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2011-11-24 08:41 -0800 |
| Message-ID | <hpssc7p86hom2cb67p9b0stcv2e8fqvove@4ax.com> |
| In reply to | #10204 |
On Thu, 24 Nov 2011 16:27:30 +0100, Silvio Bierman <silvio@moc.com> wrote, quoted or indirectly quoted someone who said : >Is there a particular reason you run Windows? It used to be because all my customers did and because I own so much Windows software. I also figured anything I produced free, first and foremost had to work on Windows. Those reasons is not as valid anymore. I could simply test under windows, but do the development in Linux. -- Roedy Green Canadian Mind Products http://mindprod.com I can't come to bed just yet. Somebody is wrong on the Internet.
[toc] | [prev] | [next] | [standalone]
| From | Knute Johnson <nospam@knutejohnson.com> |
|---|---|
| Date | 2011-11-24 09:18 -0800 |
| Message-ID | <jalu9k$9fh$1@dont-email.me> |
| In reply to | #10207 |
On 11/24/2011 8:41 AM, Roedy Green wrote: > On Thu, 24 Nov 2011 16:27:30 +0100, Silvio Bierman<silvio@moc.com> > wrote, quoted or indirectly quoted someone who said : > >> Is there a particular reason you run Windows? > > It used to be because all my customers did and because I own so much > Windows software. I also figured anything I produced free, first and > foremost had to work on Windows. > > Those reasons is not as valid anymore. I could simply test under > windows, but do the development in Linux. I recently did a project where all the development was done under Linux. The program ran smoother and faster under Linux than it does under Windows. My clients however have much faster computers and that made it work fine on their machines too. I think Windows is just a resource and processor hog and that Linux has a smoother interrupt and timing environment. -- Knute Johnson
[toc] | [prev] | [next] | [standalone]
| From | "Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> |
|---|---|
| Date | 2011-11-24 07:34 -0800 |
| Message-ID | <jalo5q$1cu$1@dont-email.me> |
| In reply to | #10203 |
On 11/24/2011 05:44 AM, Roedy Green wrote: > I usually have at least one active background task going, e.g. defrag, > build, search and replace script, indexing, backup, Jet compile, > program load, source code tidy, email fetch, FTP upload, macro > expansion to regenerate my website .... > > The problem is these often interfere with my foreground work. I hit a > key and nothing happens for several seconds. I find it quite hard to > type word without the instant visual feedback. > > The background task may be hogging the CPU or the disk. Back in the > 60s I learned about what OS's were supposed to do to ameliorate this, > giving higher priority to i/o bound tasks and higher priority to tasks > a human was sitting there waiting for. > > I am using Windows 7 on a dual CPU which was orders of magnitude > resources to play with that the computers of that day, but it does not > seem to be doing all that well. > > So some questions: > > 1. Is there anything I can do to make my OWN background Java apps > better behaved, to notice disk or CPU is tight and back off? or lower > their priority to CPU or disk? > > 2. Is there anything I can do to configure some sort of allocation of > the CPU and disk where various combos of app are running? > > 3. Is there anything I can do quickly when my computer is sluggish to > throttle but not kill the culprit? > > 4. Do Linux people fare any better? I imagine most windows users have > programs in the background, but they would nearly always be idle. This > problem is likely not high on the MS priority list. Unix/Linux has nice. OpenVMS has set process/priority Windows has solitaire. (Couldn't resist that) Try looking at http://xona.com/2004/07/22.html Jeff Coffield
[toc] | [prev] | [next] | [standalone]
| From | Tassilo Horn <tassilo@member.fsf.org> |
|---|---|
| Date | 2011-11-24 17:12 +0100 |
| Message-ID | <874nxtsdnv.fsf@tsdh.uni-koblenz.de> |
| In reply to | #10205 |
"Jeffrey H. Coffield" <jeffrey@digitalsynergyinc.com> writes:
Hi!
>> 4. Do Linux people fare any better? I imagine most windows users
>> have programs in the background, but they would nearly always be
>> idle. This problem is likely not high on the MS priority list.
>
> Unix/Linux has nice.
Yep, for CPU scheduling, and additionally ionice for IO scheduling. And
there are demons like verynice that can be used to automatically adjust
priorities for certain applications, e.g., compile tasks.
Nowadays, there're also control groups in the kernel that allow for
grouping processes and setting policies for them.
Bye,
Tassilo
--
(What the world needs (I think) is not
(a Lisp (with fewer parentheses))
but (an English (with more.)))
Brian Hayes, http://tinyurl.com/3y9l2kf
[toc] | [prev] | [next] | [standalone]
| From | Patricia Shanahan <pats@acm.org> |
|---|---|
| Date | 2011-11-24 09:24 -0800 |
| Message-ID | <g9OdnR51zZxd4FPTnZ2dnUVZ_h-dnZ2d@earthlink.com> |
| In reply to | #10203 |
On 11/24/2011 5:44 AM, Roedy Green wrote: ... > I am using Windows 7 on a dual CPU which was orders of magnitude > resources to play with that the computers of that day, but it does not > seem to be doing all that well. ... > 2. Is there anything I can do to configure some sort of allocation of > the CPU and disk where various combos of app are running? On Windows, bring up the Task Manager, Processes tab. Look for the process you want to throttle. Right click it, and use "Set Priority" to give it a below normal priority. I get very frustrated by this, because back in the 1970's I worked on this problem in NCR's VRX operating system. The state of the art seems to have regressed from the paging algorithms that were well known at that time. Patricia
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2011-11-24 15:36 -0800 |
| Message-ID | <56ltc755vbhq5p6lui1lal1io7b1f0g3q1@4ax.com> |
| In reply to | #10209 |
On Thu, 24 Nov 2011 09:24:12 -0800, Patricia Shanahan <pats@acm.org> wrote, quoted or indirectly quoted someone who said : >On Windows, bring up the Task Manager, Processes tab. Look for the >process you want to throttle. Right click it, and use "Set Priority" to >give it a below normal priority. That takes so long. Is there way to do it with a batch script or a tiny utility? -- Roedy Green Canadian Mind Products http://mindprod.com I can't come to bed just yet. Somebody is wrong on the Internet.
[toc] | [prev] | [next] | [standalone]
| From | Fistulina Hepatica <f.hep3@spore.dispersal.org> |
|---|---|
| Date | 2011-11-24 22:29 -0500 |
| Message-ID | <jan22h$qv6$1@speranza.aioe.org> |
| In reply to | #10212 |
On 24/11/2011 6:36 PM, Roedy Green wrote: > On Thu, 24 Nov 2011 09:24:12 -0800, Patricia Shanahan<pats@acm.org> > wrote, quoted or indirectly quoted someone who said : > >> On Windows, bring up the Task Manager, Processes tab. Look for the >> process you want to throttle. Right click it, and use "Set Priority" to >> give it a below normal priority. > > That takes so long. Is there way to do it with a batch script or a > tiny utility? The information at http://xona.com/2004/07/22.html (which another user posted elsewhere in this thread) suggests how to start a process (such as a JVM) with priority reduced from the outset. I'd guess that /abovenormal, /high, and /realtime could also be used to start a process with elevated priority (say, an I/O bound task you want to remain very responsive).
[toc] | [prev] | [next] | [standalone]
| From | "Manh Tuong Lewis Nguyen" <matln@sfu.ca> |
|---|---|
| Date | 2011-11-25 03:01 +0000 |
| Message-ID | <7a23bs$b8e$1@morgoth.sfu.ca> |
| In reply to | #10215 |
>From: Fistulina Hepatica <f.hep3@spore.dispersal.org> >On 24/11/2011 6:36 PM, Roedy Green wrote: >> On Thu, 24 Nov 2011 09:24:12 -0800, Patricia Shanahan<pats@acm.org> >> wrote, quoted or indirectly quoted someone who said : >> >>> On Windows, bring up the Task Manager, Processes tab. Look for the >>> process you want to throttle. Right click it, and use "Set Priority" to >>> give it a below normal priority. >> >> That takes so long. Is there way to do it with a batch script or a >> tiny utility? > >The information at http://xona.com/2004/07/22.html (which another user >posted elsewhere in this thread) suggests how to start a process (such >as a JVM) with priority reduced from the outset. I'd guess that >/abovenormal, /high, and /realtime could also be used to start a process >with elevated priority (say, an I/O bound task you want to remain very >responsive). making a fist of a guess, "seamus" Derbyshire, is no enhancement of your plagiaristic dumma than a box of rocks subterfuge attempts. "seamus" Derbyshire records updated follow - names are missing as I aint so skilled as the "Murphy". -- A man said to the universe: "Sir, I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." -- Stephen Crane Murphies List applies: ".--- . ... ..- ..." <tharrison77107@h0tmail.invalid> 00101010 <zerozeroonezeroonezeroonezero@h2g2.cazoola> 3k7e4intna <3k7e4intna@se0tfbhc.k3y0a.p0z> 3x7r4vagan <3x7r4vagan@fr0gsoup.x3l0n.c0m> 3x+r4v4g4n <extr4v4g4n@fr0gs0up.x3l0n.c0m> Alice <quaxx1108@example.com> Arne Këndoj <akendoj103@foof.fcl3.org> Boojum <boojum42@gmai1.c0m> B1ll Gat3s <wm.g4t3s@m1cr0s0f7.c0m> A Canuck <canuck36@tweezit.yahoo.ca> Canuck <canuck107@canada.xyz> Cindy <c.thurston@frell.okb.uwa.edu> ClassCastException <zjkg3d9gj56@gmail.invalid> Colonel Panic <carson.tucker_189@h0tma1l.invalid> Cthun <cthun_117@qmail.net.au> Chad Carmichael <c_carm10782.x@y.z> dA.b0mB <dabomb@gmai1.c0m> dark-zark-fark <dzf190485@rutgers.edu> Deep Green <d_green11908@gmail.com> (forgery) Deeyana <d.awlberg@hotmail.invalid> De Lurker <delancey_s113@harvard.nospam.invalid> Derek Yancey <dy190295683@nospam.invalid> Derek K. Wodenhouse <dkw@none.of.your.biz> dibs <dibs@dobs.dabs> Extravagan <extravagan@frogsoup.xelon.com> Eight of Seventeen <eights17@gmail.com> Ferdinand the -14th <foo@bar.invalid> Fistulina Hepatica <f.hep3@spore.dispersal.org> Four of Seventeen <fseventeen@gmail.com> Fuschia, President-Elect of the Bright Purplish-Green Council <fp-eotbp-gc@ibm.com> George Arctos <g.arctos11@hormair.cor> Greg Kelly <gkelly101_4@gmai1.c0m> Greg Sandoval <g_sandoval@gcsma.edu.br> Gheerax IV <gheerax.4@gmail.invalid> Handkea fumosa <hfumosa@gmail.com> Hieronymus S. Freely <hsfreely@xavier.uwsc.edu> Hydrocon <hcon77107@geemail.corn> Henry Harrison <hharr.1082@quux.bar.foo> Henderson <h1@g1.f1> Heike Svensson <hsvensson.1093x1_q@hotmail.nospam.com.please> Harry Greer <h_greer_1099348@gmail.xxx> Janie Zanie <jjezebel916@gmai1.invalid> Jerry Gerrone <scuzwalla@gmail.com> John Kirkpatrick XVII <jkxvii@ask.me> Just Plain Nasty <jpnasty@nasty.com> Katie Gerrolds <k.gerrolds@nbfinlan.net> Kevin Hadron <kh_mu_meson@q.us> kensi <kensi_kensington@zoonoses.de> KitKat <kitkat_11697@gmail.example.com> little kat <lil_kat.101@gmai1.c0m> Meerkats <mk_ultra.19018@gmail.com> (forgery) Mister Scott <m_scott.19477b@noggles.corn> Movable Hype <mhype101@snortwad.net> Mrs. Danforth <danforth_a@hotmail.coo> Mike Faramis <m_faramis808@qmail.nospam.net> Mamac <mmc.19384_b@gmai1.com> Nancy 3 <n3@gmai1.c0m> Nancy 4 <n4@gmai1.c0m> (forgery) Nebulous <nebulous99@gmail.com> Nightcrawler <Dirtydeeds@dirtcheap.net> Nougat Surprise <nsurprise@noway.nohow.invalid> Novice <novice@example..com> Orange Green <og_b1823@netmail.zoog.com.au> Purpleswandir <ps_1201294@gmail.com> Retahiv Oopsiscame <roopsisc@gmail.com> Rhino <no.offline.contact.please@example.com> RichB <rich_barnsley@nowhere.com> Seamus MacRae <smacrae319@live.ca.invalid> Series Expansion <serexp1@gmail.com> scuzwalla@gmail.com SFTV_troll <SFTV_troll@yah.right> SFTV_rantings <SFTV_rantings@up.yours> Slartibartfast <slartibartfast3@gmail.com> Some Guy <Some@Guy.com> Sulfide Eater <zaxx1108@example.com> <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> Spock <spock@starfleet.ufp> sproing <sproing2323@1010.com.quux> Snicker-snack! <ssnack119@g00glema1l.c0m> Ten Blade <ten.blade@tenblade.com> Tim <tharrison77107@h0tmail.invalid> Thursday's Leftovers <thursday.197@hotmail.com> thoolen <thoolen@tholenbot.thorium> thoolen <tholen01@gmail.com> thoolen <th00len@th0lenbot.thorium> <th00len@th0lenbot.thorium> Unitary Matrix <umatrix668@gmail.com> Willy Wonka <w.wonk1028_x@gmail.xyz> Zapotec <z_gib@wav.com>
[toc] | [prev] | [next] | [standalone]
| From | thoolen <tholen01@gmail.com> |
|---|---|
| Date | 2011-11-25 01:19 -0800 |
| Message-ID | <b330bbdd-0ec2-4330-97fe-d1366d49ce99@g21g2000yqc.googlegroups.com> |
| In reply to | #10216 |
On Nov 24, 10:01 pm, "Manh Tuong Lewis Nguyen", an obvious murphy
sock, wrote:
NaN> Newsgroups: comp.lang.java.programmer
NaN> making a fist of a guess, "seamus" Derbyshire, is no
NaN> enhancement of your plagiaristic dumma than a box
NaN> of rocks subterfuge attempts.
Who is "seamus Derbyshire", murphy? There is nobody in this newsgroup
using that alias. And what does your non sequitur have to do with
Java, murphy?
NaN> "seamus" Derbyshire records updated follow -
Who is "seamus Derbyshire", murphy? There is nobody in this newsgroup
using that alias.
NaN> names are missing as I aint so skilled as the "Murphy".
What does your classic contradiction have to do with Java, murphy? You
can't be less skilled than yourself, murphy, despite being very low in
skills in any absolute sense.
"I had 'volunteered (years back) to support those who do endeavor
to provide free Free Usenet access, support those who offered
subscription based Free Usenet access, nothing more than
cooperation expected in return for what has been many
thousands of hours of work. I note most of those I joined with
are either deceased, severely disabled, or plain ole' MIA..
now it is my Time. ...
You just read my last. ...
For those who think they see me in future times I can only wish
you severe Tinnitus in your dreams. For those who know me
well (eMail, whatever) and see me, know I will be smiling also.
It is to you I say "adieu mein frenz and adios .. grazie' [hugs]
for all the Good Times! May you and yours always bear well
with all Life brings you".
/0ut"
--murphy
http://www.uffnet.com/kookkamp/goodbye.htm
And some people wonder why I call them Famous Last Words.
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2011-11-29 16:47 -0800 |
| Message-ID | <jluad791fhsvnprmb1378n2uivb7phjtmo@4ax.com> |
| In reply to | #10215 |
On Thu, 24 Nov 2011 22:29:21 -0500, Fistulina Hepatica <f.hep3@spore.dispersal.org> wrote, quoted or indirectly quoted someone who said : >The information at http://xona.com/2004/07/22.html (which another user >posted elsewhere in this thread) suggests how to start a process (such >as a JVM) with priority reduced from the outset. You would think it would work the way. If I am typing, and the OS notices either the echo is delayed more than a tenth of a second or I am typing very slowly (presumably because I can't see the echo), it should bump the priority of my task relative to everything else and schedule disk i/o so that not only my task gets priority, but other tasks use disk sparingly if I am doing any use at all. This is very dynamic. If I stop typing, priorities should revert to normal. In other words, treat the user the way they did in Tron. The scheduler is deep in the heart of the OS, unlikely easy to be tampered with. However, it might be possible for some privileged task to dynamically adjust task priorities based on its intercepting of all keystrokes, Given that keystrokes could appear is so many places it would require tapping into many places to notice the echo. It would be a feature you build into the guts of the GUI. Perhaps just typing should crank your priority way up, even if you don't need it, even if the echo is already sufficiently fast. That might be something you could do within a single app without too much tricky system integration. . -- Roedy Green Canadian Mind Products http://mindprod.com For me, the appeal of computer progamming is that even though I am quite a klutz, I can still produce something, in a sense perfect, because the computer gives me as many chances as I please to get it right.
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2011-11-24 21:46 -0500 |
| Message-ID | <4ecf0170$0$294$14726298@news.sunsite.dk> |
| In reply to | #10203 |
On 11/24/2011 8:44 AM, Roedy Green wrote: > I usually have at least one active background task going, e.g. defrag, > build, search and replace script, indexing, backup, Jet compile, > program load, source code tidy, email fetch, FTP upload, macro > expansion to regenerate my website .... > > The problem is these often interfere with my foreground work. I hit a > key and nothing happens for several seconds. I find it quite hard to > type word without the instant visual feedback. > > The background task may be hogging the CPU or the disk. Back in the > 60s I learned about what OS's were supposed to do to ameliorate this, > giving higher priority to i/o bound tasks and higher priority to tasks > a human was sitting there waiting for. > > I am using Windows 7 on a dual CPU which was orders of magnitude > resources to play with that the computers of that day, but it does not > seem to be doing all that well. > > So some questions: > > 1. Is there anything I can do to make my OWN background Java apps > better behaved, to notice disk or CPU is tight and back off? or lower > their priority to CPU or disk? > > 2. Is there anything I can do to configure some sort of allocation of > the CPU and disk where various combos of app are running? > > 3. Is there anything I can do quickly when my computer is sluggish to > throttle but not kill the culprit? > > 4. Do Linux people fare any better? I imagine most windows users have > programs in the background, but they would nearly always be idle. This > problem is likely not high on the MS priority list. The core of this problem is not Java related. AFAIK, the only thing you can control from Java is thread priority via Thread setPriority - and I don't even know how much effect setting it really would have on your problems. Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web