Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.networking > #341 > unrolled thread
| Started by | ebenZEROONE@verizon.net (Hactar) |
|---|---|
| First post | 2011-06-07 11:13 -0400 |
| Last post | 2011-06-08 16:59 +0000 |
| Articles | 8 — 4 participants |
Back to article view | Back to comp.os.linux.networking
chrome questions ebenZEROONE@verizon.net (Hactar) - 2011-06-07 11:13 -0400
Re: chrome questions Richard Kettlewell <rjk@greenend.org.uk> - 2011-06-07 16:41 +0100
Re: chrome questions ebenZEROONE@verizon.net (Hactar) - 2011-06-07 12:19 -0400
Re: chrome questions Richard Kettlewell <rjk@greenend.org.uk> - 2011-06-07 19:17 +0100
Re: chrome questions Tobias Blass <tobiasblass@gmx.net> - 2011-06-07 17:09 +0000
Re: chrome questions ebenZEROONE@verizon.net (Hactar) - 2011-06-07 14:49 -0400
Re: chrome questions ebenZEROONE@verizon.net (Hactar) - 2011-06-07 17:37 -0400
Re: chrome questions Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2011-06-08 16:59 +0000
| From | ebenZEROONE@verizon.net (Hactar) |
|---|---|
| Date | 2011-06-07 11:13 -0400 |
| Subject | chrome questions |
| Message-ID | <npr1c8-fbv.ln1@pc.home> |
I run two browsers, Firefox 3.6.13 and Chrome 10.0.648.82 dev. I use
Firefox if a site doesn't deal well with Chrome -- in the last few days,
that's eBay. Also if I need to scope out Javascript permissions, that's
much easier in FF. But C wins hand down for memory management and CPU
use.
However, Chrome takes forever and a day to start up, because it tries to
refresh every tab at once, and there's not enough memory for that (I'm
maxed out at 8 GiB). Chrome trying though, makes the system thrash like
crazy and drives the load up over 20. The system becomes unusable,
taking several minutes to respond to a keypress. It takes 30-40 minutes
to resume normalcy. I've thought of several solutions (listed in order
of preference), but I don't know if any of them are possible.
1. Chrome postpones loading further tabs until the load drops below
(say) 4.
2. Each tab loads with a random delay, say between 0 and 120
seconds.
3. Chrome crashes all tabs, replacing the contents with the "Oh
snap! Something went wrong while displaying this webpage." message,
and only loads it when I hit F5. Chrome doesn't have a "Refresh all
tabs" command, so this would either take a while or be an "as needed"
procedure.
Any ideas?
--
-eben QebWenE01R@vTerYizUonI.nOetP royalty.mine.nu:81
> A: It's annoying as hell
> Q: Why do most people hate top-posting? -- Lots42 The Library Avenger
http://www.fscked.co.uk/writing/top-posting-cuss.html
[toc] | [next] | [standalone]
| From | Richard Kettlewell <rjk@greenend.org.uk> |
|---|---|
| Date | 2011-06-07 16:41 +0100 |
| Message-ID | <87lixdfy3g.fsf@araminta.anjou.terraraq.org.uk> |
| In reply to | #341 |
ebenZEROONE@verizon.net (Hactar) writes: > However, Chrome takes forever and a day to start up, because it tries to > refresh every tab at once, and there's not enough memory for that (I'm > maxed out at 8 GiB). How many tabs do you have??? -- http://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | ebenZEROONE@verizon.net (Hactar) |
|---|---|
| Date | 2011-06-07 12:19 -0400 |
| Message-ID | <6lv1c8-3ga.ln1@pc.home> |
| In reply to | #342 |
In article <87lixdfy3g.fsf@araminta.anjou.terraraq.org.uk>,
Richard Kettlewell <rjk@greenend.org.uk> wrote:
> ebenZEROONE@verizon.net (Hactar) writes:
> > However, Chrome takes forever and a day to start up, because it tries to
> > refresh every tab at once, and there's not enough memory for that (I'm
> > maxed out at 8 GiB).
>
> How many tabs do you have???
How does one get an exact number? Oh, hang on... no, that doesn't work
(shift-esc, "stats for nerds"). Well, say 60 +/- 2. Every now and then
I copy a bunch of tabs' URLs to my log and close the tab, or worse, a
browser crashes so badly it forgets the list of open tabs and I have to
start fresh with whatever I can recall or extract from the history.
What is the signal for ^Z? SIGSTOP?
--
-eben QebWenE01R@vTerYizUonI.nOetP royalty.mine.nu:81
Hi! I'm a .sig virus! Copy me to your .sig!
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <rjk@greenend.org.uk> |
|---|---|
| Date | 2011-06-07 19:17 +0100 |
| Message-ID | <87y61dsdzg.fsf@araminta.anjou.terraraq.org.uk> |
| In reply to | #343 |
ebenZEROONE@verizon.net (Hactar) writes: > Richard Kettlewell <rjk@greenend.org.uk> wrote: >> ebenZEROONE@verizon.net (Hactar) writes: >>> However, Chrome takes forever and a day to start up, because it tries to >>> refresh every tab at once, and there's not enough memory for that (I'm >>> maxed out at 8 GiB). >> >> How many tabs do you have??? > > How does one get an exact number? Oh, hang on... no, that doesn't work > (shift-esc, "stats for nerds"). Well, say 60 +/- 2. Every now and then > I copy a bunch of tabs' URLs to my log and close the tab, or worse, a > browser crashes so badly it forgets the list of open tabs and I have to > start fresh with whatever I can recall or extract from the history. Sounds like you would benefit from using bookmarks. > What is the signal for ^Z? SIGSTOP? ^Z sends SIGTSTP. -- http://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | Tobias Blass <tobiasblass@gmx.net> |
|---|---|
| Date | 2011-06-07 17:09 +0000 |
| Message-ID | <islm15$r6n$1@dont-email.me> |
| In reply to | #341 |
On 2011-06-07, Hactar <ebenZEROONE@verizon.net> wrote: > I run two browsers, Firefox 3.6.13 and Chrome 10.0.648.82 dev. I use > Firefox if a site doesn't deal well with Chrome -- in the last few days, > that's eBay. Also if I need to scope out Javascript permissions, that's > much easier in FF. But C wins hand down for memory management and CPU > use. > > However, Chrome takes forever and a day to start up, because it tries to > refresh every tab at once, and there's not enough memory for that (I'm > maxed out at 8 GiB). Chrome trying though, makes the system thrash like > crazy and drives the load up over 20. The system becomes unusable, > taking several minutes to respond to a keypress. It takes 30-40 minutes > to resume normalcy. I've thought of several solutions (listed in order > of preference), but I don't know if any of them are possible. > > 1. Chrome postpones loading further tabs until the load drops below > (say) 4. > > 2. Each tab loads with a random delay, say between 0 and 120 > seconds. > > 3. Chrome crashes all tabs, replacing the contents with the "Oh > snap! Something went wrong while displaying this webpage." message, > and only loads it when I hit F5. Chrome doesn't have a "Refresh all > tabs" command, so this would either take a while or be an "as needed" > procedure. > > Any ideas? > You could just choose "Open the Homepage" instead of "Reopen the pages that were open last" (and then choose "new Tab page" as your homepage)
[toc] | [prev] | [next] | [standalone]
| From | ebenZEROONE@verizon.net (Hactar) |
|---|---|
| Date | 2011-06-07 14:49 -0400 |
| Message-ID | <qe82c8-6o6.ln1@pc.home> |
| In reply to | #344 |
In article <islm15$r6n$1@dont-email.me>, Tobias Blass <tobiasblass@gmx.net> wrote: > On 2011-06-07, Hactar <ebenZEROONE@verizon.net> wrote: > > > > However, Chrome takes forever and a day to start up, because it tries to > > refresh every tab at once, and there's not enough memory for that (I'm > > maxed out at 8 GiB). Chrome trying though, makes the system thrash like > > crazy and drives the load up over 20. The system becomes unusable, > > taking several minutes to respond to a keypress. It takes 30-40 minutes > > to resume normalcy. I've thought of several solutions (listed in order > > of preference), but I don't know if any of them are possible. ... > > Any ideas? > > You could just choose "Open the Homepage" instead of "Reopen the pages that > were open last" (and then choose "new Tab page" as your homepage) Cool, how to make the browser forget all the tabs _without_ waiting for a crash! Unless that does something other than what I think it does? Also, the GUI is darn near unusable during Chrome's startup due to all the thrashing. I'm writing a script that suspends all the chrome 'renderer' process (SIGSTOP), then resumes them one at a time (SIGCONT), waiting each time until the load drops. Takes longer than say an ad break, but much less time than before. -- -eben QebWenE01R@vTerYizUonI.nOetP http://royalty.mine.nu:81 ARIES: The look on your face will be priceless when you find that 40lb watermelon in your colon. Trade toothbrushes with an albino dwarf, then give a hickey to Meryl Streep. -- Weird Al, _Your Horoscope for Today_
[toc] | [prev] | [next] | [standalone]
| From | ebenZEROONE@verizon.net (Hactar) |
|---|---|
| Date | 2011-06-07 17:37 -0400 |
| Message-ID | <bai2c8-gji.ln1@pc.home> |
| In reply to | #341 |
In article <npr1c8-fbv.ln1@pc.home>, Hactar <ebenZEROONE@verizon.net> wrote:
>
> However, Chrome takes forever and a day to start up, because it tries to
> refresh every tab at once, and there's not enough memory for that (I'm
> maxed out at 8 GiB). Chrome trying though, makes the system thrash like
> crazy and drives the load up over 20. The system becomes unusable,
> taking several minutes to respond to a keypress. It takes 30-40 minutes
> to resume normalcy. I've thought of several solutions (listed in order
> of preference), but I don't know if any of them are possible.
>
> 1. Chrome postpones loading further tabs until the load drops below
> (say) 4.
Got a workaround. Takes about 4min on an Athlon 64x2, 8 GiB, ~60 tabs.
YMMV. It's a poor-man's implementation of #1 above. If you
want to do it too, add this to your ~/.bashrc :
alias cproc='ps ax | grep "[c]hrome.*renderer" | sed "s/^ *//" | cut -f 1 -d " "'
alias csusp='cproc | xargs kill -STOP'
cstart() {
maxload=4
pidtime=3
sleeptime=5 # it only updates every 5s anyway
counter=0
pids=(`cproc | tr '\n' ' '`)
pidcount=${#pids[@]}
clrmv="$(tput dl1 ; tput hpa 0)"
getload() {
uptime | sed 's/^.*load average: \([^,]*\),.*$/\1/'
}
times100() {
dc -e "$1 100 * p" | sed 's/\..*$//'
}
maxload100=$(times100 $maxload)
waitloop() {
itll_do=no
while [ $itll_do = no ] ; do
load=$(getload)
load100=$(times100 $load)
if [ $load100 -lt $maxload100 ] ; then
itll_do=yes
else
echo -n "Load=$load; waiting"
sleep $sleeptime
echo -n "$clrmv"
fi
done
}
if [ $pidcount -eq 0 ] ; then
echo 'No Chrome processes!'
else
echo -n $pidcount Chrome tab groups,
csusp
echo " all of which are suspended."
for pid in ${pids[@]} ; do
counter=$((counter+1))
waitloop
echo -n "Resuming Chrome tab group $counter/$pidcount (PID $pid): "
kill -CONT $pid
echo done.
sleep $pidtime
done
fi
}
--
The people don't want war, but it is a simple matter to drag the people
along. The people can always be brought to the bidding of the leaders.
All you have to do is tell them they are being attacked, and denounce the
pacifists for lack of patriotism and exposing the country to danger. - HG
[toc] | [prev] | [next] | [standalone]
| From | Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> |
|---|---|
| Date | 2011-06-08 16:59 +0000 |
| Message-ID | <pan.2011.06.08.16.59.29@thedarkdesign.free.fr.INVALID> |
| In reply to | #341 |
Tue, 07 Jun 2011 11:13:27 -0400, Hactar did cat : > I run two browsers, Firefox 3.6.13 and Chrome 10.0.648.82 dev. I use > Firefox if a site doesn't deal well with Chrome -- in the last few days, > that's eBay. Also if I need to scope out Javascript permissions, that's > much easier in FF. But C wins hand down for memory management and CPU > use. > > However, Chrome takes forever and a day to start up, because it tries to > refresh every tab at once, and there's not enough memory for that (I'm > maxed out at 8 GiB). Chrome trying though, makes the system thrash like > crazy and drives the load up over 20. The system becomes unusable, > taking several minutes to respond to a keypress. It takes 30-40 minutes > to resume normalcy. I've thought of several solutions (listed in order > of preference), but I don't know if any of them are possible. > > 1. Chrome postpones loading further tabs until the load drops below > (say) 4. > > 2. Each tab loads with a random delay, say between 0 and 120 > seconds. > > 3. Chrome crashes all tabs, replacing the contents with the "Oh > snap! Something went wrong while displaying this webpage." message, > and only loads it when I hit F5. Chrome doesn't have a "Refresh all > tabs" command, so this would either take a while or be an "as needed" > procedure. > > Any ideas? try something like this example: ( WOOP=./beammeup ; rm -r $WOOP ; mkdir $WOOP ; touch $WOOP/First\ Run ; chrome --user-data-dir=$WOOP ; rm -r $WOOP ) there are ways (with crossed mounts and more) to even go a few steps beyond but this should help you to fire up a chrome session in a handful of seconds whether you have a stuck session or a thousand. (At least it works fine on my installations, ATM using Chromium 13.0.752.0) Play with it, control the 'rm' part to see if there are pieces you'd like to export/save/control before washing the board. (and, yes, that's different from the '--incognito' mode)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.networking
csiph-web