Banshee 运行非常缓慢

Banshee 运行非常缓慢

Banshee 在我的 PC 上运行非常慢。我的 PC 应该有足够的性能(2x3Ghz、4GB 内存、7GB 交换空间、1GB 显卡、32 位 Ubuntu),但播放列表之间的切换非常慢。

  • banshee 的默认版本(不是 ppa 版本)
  • ~4000raid-1 ext4 分区上的音乐文件
  • 49%+32%CPU使用率切换播放列表或专辑时
  • 50%CPU使用率滚动相册视图时

调试没有向我展示为什么 banshee 运行如此缓慢。当我在播放列表之间切换或选择专辑时(需要近 2 秒) 终端上没有显示任何内容。

tvn@main:~$ banshee --debug
** Running Mono with --debug   **
[1 Info  17:37:52.783] Running Banshee 2.0.0: [Ubuntu Natty (development branch) (linux-gnu, i686) @ 2011-04-18 16:21:33 UTC]
[1 Debug 17:37:52.800] Initializing GTK
[1 Debug 17:37:54.154] Post-Initializing GTK
[1 Debug 17:37:54.164] Configuration client extension loaded (Banshee.GnomeBackend.GConfConfigurationClient)
[1 Debug 17:37:54.181] Using default gconf-base-key
[1 Debug 17:37:54.221] Bus.Session.RequestName ('org.bansheeproject.Banshee') replied with PrimaryOwner
[1 Debug 17:37:54.290] Core service started (DBusServiceManager, 0,001209)
[1 Debug 17:37:54.293] Registering remote object /org/bansheeproject/Banshee/DBusCommandService (Banshee.ServiceStack.DBusCommandService) on org.bansheeproject.Banshee
[1 Debug 17:37:54.302] Core service started (DBusCommandService, 0,011063)
[1 Debug 17:37:54.336] Opened SQLite (version 3.7.4) connection to /home/tvn/.config/banshee-1/banshee.db
[1 Debug 17:37:54.337] Core service started (DbConnection, 0,034676)
[1 Debug 17:37:54.344] Database version 43 is up to date
[1 Debug 17:37:54.374] Core service started (PreferenceService, 0,013099)
[1 Debug 17:37:54.381] Core service started (Network, 0,007064)
[1 Debug 17:37:54.382] Registering remote object /org/bansheeproject/Banshee/SourceManager (Banshee.Sources.SourceManager) on org.bansheeproject.Banshee
[1 Debug 17:37:54.382] Core service started (SourceManager, 0,000638)
[1 Debug 17:37:54.390] Core service started (MediaProfileManager, 0,000229)
[1 Debug 17:37:54.393] Registering remote object /org/bansheeproject/Banshee/PlayerEngine (Banshee.MediaEngine.PlayerEngineService) on org.bansheeproject.Banshee
[1 Debug 17:37:54.397] Core service started (PlayerEngine, 0,007314)
[1 Debug 17:37:54.411] Registering remote object /org/bansheeproject/Banshee/PlaybackController (Banshee.PlaybackController.PlaybackControllerService) on org.bansheeproject.Banshee
[1 Debug 17:37:54.412] Core service started (PlaybackController, 0,002727)
[1 Debug 17:37:54.419] Starting - Startup Job
[1 Debug 17:37:54.420] Core service started (JobScheduler, 0,007892)
[1 Debug 17:37:54.432] IO provider extension loaded (Banshee.IO.Gio.Provider)
[1 Debug 17:37:54.463] Loaded HardwareManager backend: Banshee.Hardware.Gio
[1 Debug 17:37:54.464] Core service started (HardwareManager, 0,044113)
[1 Debug 17:37:54.467] Bus.Session.RequestName ('org.bansheeproject.CollectionIndexer') replied with PrimaryOwner
[1 Debug 17:37:54.468] Registering remote object /org/bansheeproject/Banshee/CollectionIndexerService (Banshee.Collection.Indexer.CollectionIndexerService) on org.bansheeproject.CollectionIndexer
[1 Debug 17:37:54.470] Core service started (CollectionIndexerService, 0,005453)
[1 Debug 17:37:54.472] Core service started (SaveTrackMetadataService, 0,001513)
[1 Debug 17:37:54.480] Adding icon theme search path: /usr/share/banshee/icons
[1 Debug 17:37:54.481] Core service started (GtkElementsService, 0,009158)
[1 Debug 17:37:54.482] Core service started (InterfaceActionService, 0,001539)
[1 Debug 17:37:54.554] Registering remote object /org/bansheeproject/Banshee/GlobalUIActions (Banshee.Gui.GlobalActions) on org.bansheeproject.Banshee
[1 Debug 17:37:54.555] Album artwork path set to /home/tvn/.cache/media-art
[1 Debug 17:37:54.577] Core service started (ArtworkManager, 0,023272)
[1 Debug 17:37:54.577] Core service started (BookmarksService, 0,000135)
[1 Debug 17:37:55.046] Constructed Nereid interface: 0,402973
[1 Debug 17:37:55.139] Creating new surface cache for 90px images, capped at 0,65 MiB (21 items)
[1 Debug 17:37:55.198] Registering remote object /org/bansheeproject/Banshee/ClientWindow (Nereid.PlayerInterface) on org.bansheeproject.Banshee
[1 Debug 17:37:55.198] Core service started (NereidPlayerInterface, 0,576714)
[1 Debug 17:37:55.220] Extension service started (GStreamerCoreService, 0,020599)
[1 Debug 17:37:55.227] Extension service started (PodcastService, 0,002593)
[1 Debug 17:37:55.228] Extension service started (DapService, 0,001135)
[1 Info  17:37:55.232] Updating web proxy from GConf
[1 Debug 17:37:55.236] Direct connection, no proxy in use
[1 Debug 17:37:55.251] Extension service started (GnomeService, 0,022906)
[1 Debug 17:37:55.253] Extension service started (CoverArtService, 0,001967)
[1 Info  17:37:55.254] All services are started 1,032338
[1 Debug 17:37:55.673] Creating Pango.Layout, configuring Cairo.Context
[1 Debug 17:37:55.993] Extension source loaded: Jetzt wiedergegeben
[1 Debug 17:37:55.997] Extension source loaded: Miro Guide
[1 Debug 17:37:56.018] Extension source loaded: Hörbücher
[1 Debug 17:37:56.022] Starting GTK main loop
[1 Debug 17:37:56.267] Creating Pango.Layout, configuring Cairo.Context
[1 Debug 17:37:56.340] Creating Pango.Layout, configuring Cairo.Context
[1 Info  17:37:56.471] nereid Client Started
[1 Debug 17:37:56.474] Delayed Initializating Banshee.MediaEngine.PlayerEngineService
[1 Debug 17:37:56.478] (libbanshee:player) Stream volume supported: YES
[1 Debug 17:37:56.480] (libbanshee:player) Audiosink has volume: NO
[1 Debug 17:37:56.489] (libbanshee:player) Using system (gst-plugins-good) equalizer element
[1 Debug 17:37:56.549] Player state change: NotReady -> Ready
[1 Debug 17:37:56.554] Loaded equalizer presets: 0,000173
[1 Debug 17:37:56.559] Selected equalizer: Rock
[1 Debug 17:37:56.564] Player state change: Ready -> Idle
[1 Debug 17:37:56.569] (libbanshee:player) Disabled ReplayGain
[1 Info  17:37:56.571] GStreamer version 0.10.32.0, gapless: True, replaygain: False
[1 Debug 17:37:56.576] Delayed Initializating Banshee.Podcasting.PodcastService
[1 Debug 17:37:56.650] Delayed Initializating Banshee.Dap.DapService
[1 Debug 17:37:56.656] Dap support extension loaded: Banshee.Dap.AppleDevice
[2 Debug 17:37:56.686] Refreshing any podcasts that haven't been updated in over an hour
[1 Debug 17:37:57.687] Finished - Startup Job
[1 Debug 17:37:57.695] Starting - Alben-Cover downloaded
[3 Debug 17:37:57.705] Finished - Alben-Cover downloaded
[1 Debug 17:53:01.230] Starting - Metadata written in file
[4 Debug 17:53:01.238] Finished - Metadata written in file

答案1

以下是一些想法:

  1. Banshee 可能在后台执行一些 CPU 密集型任务。有些一次性任务(例如每分钟节拍检测和分析音乐相似性)可能非常耗费 CPU。在“编辑”>“首选项”>“扩展”中,您可以确保关闭其中一些功能。请参阅这个答案有关如何提高 Banshee 的 CPU 使用率的更多信息。

  2. sqlite3这可能是 Banshee 数据库的问题。您可以通过安装程序并在终端中运行来优化数据库sqlite3 ~/.config/banshee-1/banshee.db "vacuum; analyze;"。有关数据库性能的其他有用建议可以在Banshee Wiki 的性能问题页面

  3. 如果没有什么帮助,你绝对应该提交错误报告banshee --debug. 请务必将和的输出附加banshee --debug-sql到您的错误报告中(有关获取调试日志的更多信息)。

答案2

试试我的建议*驯服女妖的方法。对我来说,这种方法可以将女妖的数量从大约 50%->75% 降低到大约 10%->20%,对你来说,这种方法可能也有效。

编辑:根据建议,我决定在这里发布详细信息:)(战胜我的懒惰)。

  • 打开 Banshee 偏好设置,找到所有你实际上并不使用并且可能暂时不会使用的插件:

    在此处输入图片描述

  • 禁用哪怕是最轻微的选项 – 包括 last.fm 建议等。这是我的列表现在的样子:

    在此处输入图片描述

**该链接指向我的博客,以避免重复输入。*

相关内容