Contenues dans
Trouver plus de documentationRessources d'assistance comprises | Télécharger cet ouvrage au format PDF (577 Ko)
Chapter 7 Improving PerformanceThis chapter describes how to improve the performance of the GNOME Desktop. Introduction to Improving PerformanceThis chapter lists several preferences whose settings you can change to improve the performance of the desktop environment. You can use the gconftool-2 command to set values for preferences for users. The example commands in this chapter show how to set values in the user configuration source. You can also use the --direct and --config-source options to set mandatory values or default values for preferences. You can also use the gconftool-2 command in a script to set the values of many preferences. For more information on the gconftool-2 command and the options that are available with the command, see Chapter 1, Using GConf. You can also use the --direct and --config-source options to set mandatory values or default values for preferences. You can also use the gconftool-2 command in a script to set the values of many preferences. For more information on the gconftool-2 command and the options that are available with the command, see Using GConf. Reducing CPU UsageThis section describes preferences that you can set to reduce CPU usage by the desktop environment. To Use Themes Which Require Less CPU ResourcesSome window frame themes load image files to draw the window frame. Other themes use simpler techniques to draw the window frame. The default theme is Crux. Crux loads image files, and can be slow on systems with limited CPU resources. To reduce CPU usage, use one of the following window frame themes:
The following window frame themes also use less CPU resources than Crux:
Note – Metabox does not work well with inverse desktop themes such as HighContrastInverse. Use Atlanta with inverse desktop themes. To change the window frame theme, run the following command: # gconftool-2 --type string --set /apps/metacity/general/theme theme-name For example, to use Atlanta, run the following command: # gconftool-2 --type string --set /apps/metacity/general/theme Atlanta Alternatively, users can choose Applications -> Desktop Preferences -> Theme, then select the appropriate theme. Tip – You can use the # metacity-theme-viewer theme-name For example, to measure the performance of Atlanta and preview Atlanta, run the following command: # metacity-theme-viewer Atlanta To Reduce CPU Usage by Turning Off Display of Icons in MenusSome items in menus display an icon beside the item. To turn off this feature, run the following command: # gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons false Alternatively, users can choose Applications -> Desktop Preferences -> Menus & Toolbars, then deselect the Show icons in menus option. To Reduce CPU Usage by Turning On Wireframe ModeThe To turn on wireframe mode, run the following command: # gconftool-2 --type bool --set /apps/metacity/sun_extensions/wireframe_move_resize true To Reduce CPU Usage by Turning Off the Splash ScreenBy default, when users log in to the desktop environment, a splash screen is displayed. Icons are displayed on the splash screen while the user logs in. You can turn off the splash screen to reduce CPU usage during login. To turn off the splash screen, run the following command: # gconftool-2 --type bool --set /apps/gnome-session/options/show_splash_screen false Alternatively, users can choose Applications -> Desktop Preferences -> Advanced -> Sessions, then deselect the Show splash screen on login option. To Reduce CPU Usage by Turning Off Panel AnimationWhen users show or hide panels, the panels can show or hide in an animated style. To turn off panel animation, run the following command: # gconftool-2 --type bool --set /apps/panel/global/enable_animations false Alternatively, users can choose Applications -> Desktop Preferences -> Advanced -> Panel, then deselect the Animation option. Improving File Manager PerformanceThe To Modify Performance PreferencesThe file manager includes performance-related preferences. Each performance preference can take one of three values. The values are described in the following table:
The following table describes the performance preferences for the file manager. For the fastest performance, set the value of the preferences to never.
To Turn Off the Side Pane, Toolbar, and Location BarThe file manager includes preferences that enable you to turn off the side pane and the toolbar. To improve file manager performance, turn off the side pane and the toolbar. To turn off the side pane, run the following command: # gconftool-2 --type bool --set /apps/nautilus/preferences/start_with_sidebar false Alternatively, users can choose Edit -> Preferences from a file manager window, then choose Windows, and then deselect the Display side pane option. The next time that users open a file manager window, the window does not display a side pane. To turn off the toolbar, run the following command: # gconftool-2 --type bool --set /apps/nautilus/preferences/start_with_toolbar false Alternatively, users can choose Edit -> Preferences from a file manager window, then choose Windows, and then deselect the Display toolbar option. The next time that users open a file manager window, the window does not display a toolbar. You can also turn off the location bar. Users can use the Ctrl + L keyboard shortcut to display a location bar when required. To turn off the location bar, run the following command: # gconftool-2 --type bool --set /apps/nautilus/preferences/start_with_location_bar false Alternatively, users can choose Edit -> Preferences from a file manager window, then choose Windows, and then deselect the Display location bar option. The next time that users open a file manager window, the window does not display a location bar. To Turn Off the DesktopThe file manager contains a preference that
enables users to use
To disable the desktop, run the following command: # gconftool-2 --type bool --set /apps/nautilus/preferences/show_desktop false Alternatively, users can choose Edit -> Preferences from a file manager window. Users can then choose Desktop & Trash, and then deselect the Use Nautilus to draw the desktop option. To Use the mediaLib LibrariesThe For information on how to obtain and install the Reducing X Window System Network TrafficThis section describes preferences that you can set to reduce X Window System network traffic on the desktop environment. To Use Themes Which Create Less Network TrafficRemote display protocols do not transfer every pixel in a block of pixels if all pixels in the block are the same color. To reduce X Window System network traffic, use a window frame theme that uses solid colors. That is, use one of the following window frame themes:
For information on how to change the theme, see To Use Themes Which Require Less CPU Resources. To Reduce Network Traffic by Turning Off Display of Icons in MenusSome items in menus display an icon beside the item. If the icon is located on another file system, this feature can increase X Window System network traffic. This feature can also increase X Window System network traffic if the panels are displayed on a remote host. For example, if a Sun Ray server runs the panels and displays the panels on a Sun Ray client. For information on how to turn off this feature, see To Reduce CPU Usage by Turning Off Display of Icons in Menus. To Reduce Network Traffic by Turning On Wireframe ModeIf the application that displays the window is running on a remote host, wireframe mode reduces X Window System network traffic. For more information on wireframe mode, see To Reduce CPU Usage by Turning On Wireframe Mode. Reducing Color Usage and Improving Display QualityMany modern computer systems support 24-bit color, that is, 16,777,216 colors. However, many users still use systems that support 8-bit color, that is, 256 colors. The desktop environment uses the websafe color palette. This palette is a general-purpose palette of 216 colors, which is designed to optimize the use of color on systems that support 8-bit color. However, some visual components of the desktop environment are designed for systems that support 24-bit color. The following display problems might occur on systems that support 8-bit color:
The following sections describe how to optimize the appearance of the desktop environment for systems that support 8-bit color. To Use Themes That Use the Websafe Color PaletteSome window frame themes use colors that are in the websafe color palette. Bright and Esco use colors from the websafe color palette. Bright and Esco do not have the grainy appearance of other themes on 8-bit color displays. Use Bright or Esco for the best color display on 8-bit visual modes. For information on how to change the theme, see To Use Themes Which Require Less CPU Resources. To Reduce Color Usage by Turning Off Display of Icons in MenusSome items in menus display an icon beside the item. If the icon contains colors that are not in the websafe color palette, this feature can increase the number of colors used. For information on how to turn off this feature, see To Reduce CPU Usage by Turning Off Display of Icons in Menus. To Reduce Color Usage by Turning Off the Splash ScreenYou can turn off the splash screen to make more colors available for the desktop environment and for applications. For information on how to turn off the splash screen, see To Reduce CPU Usage by Turning Off the Splash Screen. To Reduce Color Usage by Using a Solid Color for the Desktop BackgroundUse a solid color for the desktop background. Use of a solid color reduces the number of colors used by the desktop environment. To set a solid color for the desktop background, run the following commands: # gconftool-2 --type string --set /desktop/gnome/background/picture_options none # gconftool-2 --type string --set /desktop/gnome/background/color_shading_type solid # gconftool-2 --type string --set /desktop/gnome/background/primary_color \#hexadecimal-color Alternatively, users can choose Applications -> Desktop Preferences -> Background, then choose a solid color for the desktop background. |
||||||||