Improving PerformanceThis chapter describes how to improve the performance of
the GNOME Desktop.Introduction to Improving Performanceperformance, improvingintroductionThis 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 Using GConf.Reducing CPU Usageperformance, improvingreducing CPU
usagereducingCPU usageCPU usagereducingThis section describes preferences that
you can set to reduce CPU usage by the desktop environment. To Use Theme Options Which Require Less CPU Resourcesthemeswindow frame optionsand CPU usagethemesand CPU usageSome window frame theme
options load image files to draw the window frame. Other options use simpler
techniques to draw the window frame.The default window frame option 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 options: AtlantaEscoThe following window frame options also use less CPU resources than
Crux:AgingGorillaBrightMetaboxMetabox does not work well with inverse controls options such
as HighContrastInverse. Use Atlanta with inverse controls options.themeswindow frame optionschangingTo change the window
frame theme option, run the following command: #gconftool-2 --type string
--set /apps/metacity/general/theme option-nameFor example, to use Atlanta, run the following command:#gconftool-2 --type string
--set /apps/metacity/general/theme AtlantaAlternatively, users can choose ApplicationsDesktop PreferencesTheme, then select the appropriate option.You can use the Metacity Theme Viewer
to measure the performance of a window frame option, and to preview the option.
To start Metacity Theme Viewer, use the following
command:#metacity-theme-viewer option-nameFor example, to measure the performance of Atlanta and preview Atlanta,
run the following command: #metacity-theme-viewer
AtlantaTo Reduce CPU Usage by Turning Off Display of Icons in Menusicons, in menusmenu iconsmenu iconsand CPU usagemenu iconsturning offSome 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 falseAlternatively, users can choose ApplicationsDesktop PreferencesMenus & Toolbars, then deselect the Show icons in menus option.To Reduce CPU Usage by Turning Off the Splash Screensplash screenand CPU usageBy 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. splash screenturning offTo turn off the splash screen, run the following command:#gconftool-2 --type bool
--set /apps/gnome-session/options/show_splash_screen falseAlternatively, users can choose ApplicationsDesktop PreferencesAdvancedSessions,
then deselect the Show splash screen on login option.To Reduce CPU Usage by Turning Off Panel Animationpanelsanimation, turning offWhen 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 falseAlternatively, users can choose ApplicationsDesktop PreferencesAdvancedPanel,
then deselect the Animation option.Improving File Manager PerformanceNautilusfile managerThe Nautilus file manager includes some features
that you can modify to improve performance.To Modify Performance Preferencesfile managermodifying 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:ValueDescriptionalwaysPerforms
the action for both local files, and files on other file systems.local_onlyPerforms the action for local files only. When you
set a performance preference to local_only, the CPU usage
is reduced.neverNever performs the action. When you set a performance preference
to never, the CPU usage and the network traffic are reduced.The following table describes the performance preferences for the file
manager. For the fastest performance, set the value of the preferences to never.PreferenceDescriptionshow_icon_textSpecifies when to preview the content of text files
in the icon that represents the file. To never preview the content of text
files, run the following command: #gconftool-2 --type string --set /apps/nautilus/preferences/show_icon_text neverAlternatively, users can perform
the following steps:Choose EditPreferences from a file manager window, then choose Performance.Select an option for the Show Text in Icons
preference.show_directory_item_countsSpecifies when to show the number of items in folders.
To never show the number of items in folders, run the following command:#gconftool-2 --type string --set /apps/nautilus/preferences/show_directory_item_counts neverAlternatively, users can perform the following steps:Choose EditPreferences from a file manager window, then choose Performance.Select an option for the Show Number of Items in
Folders preference.show_image_thumbnailsSpecifies when to show thumbnails of image files.
To never show thumbnails, run the following command:#gconftool-2 --type string --set /apps/nautilus/preferences/show_image_thumbnails neverAlternatively, users can perform the following steps:Choose EditPreferences from a file manager window, then choose Performance.Select an option for the Show Thumbnails for Image
Files preference.preview_soundSpecifies when to preview the content of sound files.
To never preview the content of sound files, run the following command:#gconftool-2 --type string --set /apps/nautilus/preferences/preview_sound
never Alternatively, users can perform the following
steps:Choose EditPreferences from a file manager window, then choose Performance.Select an option for the Preview Sound Files
preference.To Turn Off the Side Pane, Toolbar, and Location Barfile managerside pane, turning offThe 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 falseAlternatively, users can choose EditPreferences 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. file managertoolbar, turning
offTo turn off the toolbar, run the following command: #gconftool-2 --type bool
--set /apps/nautilus/preferences/start_with_toolbar falseAlternatively, users can choose EditPreferences 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 CtrlL keyboard shortcut to display a location bar
when required. file managerlocation bar, turning
offTo turn off the location bar, run the following
command:#gconftool-2 --type bool
--set /apps/nautilus/preferences/start_with_location_bar falseAlternatively, users can choose EditPreferences 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 Desktopfile managerdesktop, turning offdesktopturning
offThe file manager contains a preference that
enables users to use Nautilus to manage the desktop.
Users can disable the desktop to improve performance. However, if users disable
the desktop, users cannot do the following:Use the Desktop menu.Use the file manager to change the pattern or color of the
desktop background. Use the Home object and the Trash object. The Home object and the Trash object are not displayed on the desktop. To disable the desktop, run the following command: #gconftool-2 --type bool
--set /apps/nautilus/preferences/show_desktop falseAlternatively, users can choose EditPreferences from a file manager window.
Users can then choose Desktop & Trash, and then deselect
the Use Nautilus to draw the desktop option. Reducing X Window System Network TrafficreducingX Window System network trafficX Window System network traffic,
reducingnetwork traffic, reducingThis section describes preferences that you can
set to reduce X Window System network traffic on the desktop environment. To Use Theme Options Which Create Less Network Trafficthemeswindow frame optionsand network trafficthemesand 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
option that uses solid colors. That is, use one of the following window frame
options:AtlantaEscoFor information on how to change theme options, see .To Reduce Network Traffic by Turning Off Display of Icons in Menusmenu iconsand network trafficSome 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 information on how to turn off this feature, see .Reducing Color Usage and Improving Display Qualityreducingcolor usagecolor usagereducingdisplay quality, improvingMany 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:Windows, icons, and background images might appear grainy.
Many themes, background images, and icons use colors that are not in the
websafe color palette. The colors that are not in the palette are replaced
with the nearest equivalent or a dithered approximation. This use of replacement
colors causes the grainy appearance.Applications that do not use the websafe color palette have
less colors available. Color errors might occur. Some colors might not appear
in the user interface of the application. Some applications might crash if
the application cannot allocate colors.Color flashing might occur when users switch between applications
that use the websafe color palette, and applications that do not use this
palette. The applications that do not use the websafe color palette might
use a custom colormap. When the custom colormap is used, other visual components
might lose colors, then become unviewable.The following sections describe how to optimize the appearance of the
desktop environment for systems that support 8-bit color. To Use Theme Options That Use the Websafe Color Palettethemeswindow frame optionsand color usagethemesand color usageSome window
frame theme options 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 window frame options 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 theme options, see .To Reduce Color Usage by Turning Off Display of Icons in Menusmenu iconsand color usageSome 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 Color Usage by Turning Off the Splash Screensplash screenand color usageYou 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 Color Usage by Using a Solid Color for the Desktop Backgrounddesktop backgroundusing solid colorUse 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-colorAlternatively, users can choose ApplicationsDesktop PreferencesBackground, then choose a solid color for the desktop
background.Improving Performance of HelpimprovingHelp performanceHelpimproving performanceperformance, improvingHelpThe source documents for the
Help are XML files. The XML files are converted to HTML, and the Yelp Help browser displays the HTML. The HTML can be pregenerated, that is, the XML can be converted to HTML before
the Help is used.Alternatively, the conversion can be performed automatically when a
user calls a Help file. If the conversion is performed when the user calls
the Help file, the conversion has a significant impact on the speed with which
Help documents are displayed.To avoid performance problems with the Help, pregenerate the HTML so
that the Help browser does not need to do the conversion. Use the yelp-pregenerate command to pregenerate a Help document. The syntax
of the yelp-pregenerate command is as follows: yelp-pregeneratefilenameThe following table describes the options and arguments
for the yelp-pregenerate command:Option or ArgumentDescription-aPregenerates
all XML files that are registered in the ScrollKeeper
database. This option is the default option.-fPregenerates
only the XML files that you specify in the command.filenameThe name of the XML file or XML files that you want to pregenerate.localeThe
locale for which you want to pregenerate the XML files. The default locale
is C, or English.For example, to pregenerate the English version of all XML files in
the file system, run the following command:#yelp-pregenerate -aYou do not need to specify the locale in this example, as the default
locale is C. To pregenerate the Spanish version of the gedit manual, run the following command: #yelp-pregenerate -f gedit.xml
esWhen a user opens a Help file, the Help browser does the following: The Help browser searches for the appropriate HTML file. If
the Help browser finds the HTML file, the Help browser compares the modification
dates of the HTML file and the corresponding XML file. If the HTML file is
more recent than the XML file, the HTML file is displayed.If the HTML file is older than the XML file, the XML file
is converted to HTML.If the Help browser does not find a HTML file for a Help document,
the XML file is converted to HTML.In other words, the Help browser displays pregenerated HTML if the pregenerated
HTML file is present. If the pregenerated HTML file is not present, the Help
browser converts the XML file to HTML.You might want to pregenerate the Help for any new applications
that you want to add to your desktop environment. If there are severe space
restrictions in your environment, you might choose not to pregenerate the
Help.