Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Issue 11566037: Increase default maximum desktop size and make it configurable. (Closed)

Created:
8 years ago by Jamie
Modified:
8 years ago
Reviewers:
Lambros, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, pam+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Increase default maximum desktop size and make it configurable. BUG=166099 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173214

Patch Set 1 #

Patch Set 2 : Removed debug print #

Total comments: 6

Patch Set 3 : Fixed typo. #

Patch Set 4 : Support a sensible initial size and a much larger maximum size by default. #

Total comments: 12

Patch Set 5 : Reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M remoting/tools/me2me_virtual_host.py View 1 2 3 4 4 chunks +17 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jamie
ptal
8 years ago (2012-12-14 18:58:58 UTC) #1
Wez
https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py#newcode37 remoting/tools/me2me_virtual_host.py:37: MAXIMUM_SIZE_ENV_VAR = "CHROME_REMOTE_DESKTOP_MAXIMUM_DESTOP_SIZE" typo: DESTOP https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py#newcode752 remoting/tools/me2me_virtual_host.py:752: DEFAULT_SIZE = ...
8 years ago (2012-12-14 19:06:59 UTC) #2
Jamie
https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py#newcode37 remoting/tools/me2me_virtual_host.py:37: MAXIMUM_SIZE_ENV_VAR = "CHROME_REMOTE_DESKTOP_MAXIMUM_DESTOP_SIZE" On 2012/12/14 19:07:00, Wez wrote: > ...
8 years ago (2012-12-14 19:29:16 UTC) #3
Wez
https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py#newcode752 remoting/tools/me2me_virtual_host.py:752: DEFAULT_SIZE = "3840x1600" On 2012/12/14 19:29:16, Jamie wrote: > ...
8 years ago (2012-12-14 19:30:13 UTC) #4
Jamie
https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/2001/remoting/tools/me2me_virtual_host.py#newcode752 remoting/tools/me2me_virtual_host.py:752: DEFAULT_SIZE = "3840x1600" On 2012/12/14 19:30:13, Wez wrote: > ...
8 years ago (2012-12-14 19:42:57 UTC) #5
Wez
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py#newcode37 remoting/tools/me2me_virtual_host.py:37: DEFAULT_SIZES_ENV_VAR = "CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES" nit: Consider describing the format this ...
8 years ago (2012-12-14 19:49:02 UTC) #6
Lambros
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py#newcode834 remoting/tools/me2me_virtual_host.py:834: # specified on the command-line, provide a relatively small ...
8 years ago (2012-12-14 19:59:05 UTC) #7
Jamie
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py#newcode37 remoting/tools/me2me_virtual_host.py:37: DEFAULT_SIZES_ENV_VAR = "CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES" On 2012/12/14 19:49:03, Wez wrote: > ...
8 years ago (2012-12-14 21:13:17 UTC) #8
Wez
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py#newcode839 remoting/tools/me2me_virtual_host.py:839: default_sizes = "1600x1200,3840x1600" On 2012/12/14 21:13:17, Jamie wrote: > ...
8 years ago (2012-12-14 21:19:20 UTC) #9
Jamie
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py File remoting/tools/me2me_virtual_host.py (right): https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py#newcode839 remoting/tools/me2me_virtual_host.py:839: default_sizes = "1600x1200,3840x1600" On 2012/12/14 21:19:20, Wez wrote: > ...
8 years ago (2012-12-14 21:23:19 UTC) #10
Jamie
On 2012/12/14 21:23:19, Jamie wrote: > https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py > File remoting/tools/me2me_virtual_host.py (right): > > https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtual_host.py#newcode839 > ...
8 years ago (2012-12-14 21:26:44 UTC) #11
Wez
8 years ago (2012-12-14 21:30:56 UTC) #12
On 2012/12/14 21:26:44, Jamie wrote:
> On 2012/12/14 21:23:19, Jamie wrote:
> >
>
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtu...
> > File remoting/tools/me2me_virtual_host.py (right):
> > 
> >
>
https://codereview.chromium.org/11566037/diff/4002/remoting/tools/me2me_virtu...
> > remoting/tools/me2me_virtual_host.py:839: default_sizes =
> "1600x1200,3840x1600"
> > On 2012/12/14 21:19:20, Wez wrote:
> > > On 2012/12/14 21:13:17, Jamie wrote:
> > > > On 2012/12/14 19:59:05, Lambros wrote:
> > > > > It's a strange letter-boxy default. I'd be inclined to increase the
> final
> > > 1600
> > > > > to, say, 2560 (in case someone wants to rotate a large monitor into
> > portrait
> > > > > mode, or wants to stack two smaller monitors vertically). WDYT?
> > > > 
> > > > That increases Xvfb memory usage from 34 to 48Mb, which I think is
> starting
> > to
> > > > get too big for a default setup. We have to strike a balance between
> making
> > > sure
> > > > that things "just work" for common use cases, without being too
> > > resource-hungry.
> > > > I don't think we can make this work OOtB for all users, hence the
> > environment
> > > > variable.
> > > 
> > > Linux will only actually commit pages that we touch - that doesn't really
> help
> > > with the width, since pages are 4KB on x86, so the pages will fall on 1024
> > pixel
> > > boundaires, but it should mean that pages containing pixels beyond the
> bottom
> > of
> > > the current dimensions just count against swap quota, in effect.
> > 
> > Is this a vote for increasing the height or just a comment?
> 
> FWIW, I checked the memory usage using the "rss" column of ps, which is
resident
> memory. Perhaps Xvfb is zeroing the framebuffer?

Let's stick with the letter-box size for now, and revisit this or see if we can
follow-up w/ a patch to optimize Xvfb not to touch the memory til it needs it.

LGTM

Powered by Google App Engine
This is Rietveld 408576698