這似乎特別違反直覺:你最小化一個應用程式是因為你計劃稍後返回它,並希望跳過關閉應用程式和稍後重新啟動它,但有時最大化它甚至需要比重新啟動它更長的時間。有什麼好處?
今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。
超級使用者讀者Bart想知道他為什麼不透過應用程式最小化節省時間:
I’m working in Photoshop CS6 and multiple browsers a lot. I’m not using them all at once, so sometimes some applicati*** are minimized to taskbar for hours or days.
The problem is, when I try to maximize them from the taskbar – it sometimes takes longer than starting them! Especially Photoshop feels really weird for many seconds after finally showing up, it’s slow, unresp***ive and even sometimes totally freezes for minute or two.
It’s not a hardware problem as it’s been like that since always on all on my PCs.
Would I also notice it after upgrading my HDD to SDD and adding RAM (my main PC holds 4 GB currently)? Could guys with powerful pcs / macs tell me – does it also happen to you?
I guess OSes somehow “focus” on active software and move all the resources away from the ones that run, but are not used. Is it possible to somehow set RAM / CPU / HDD priorities or something, for let’s say, Photoshop, so it won’t slow down after long period of inactivity?
那交易是什麼?為什麼他發現自己在等待最小化應用程式的最大化?
超級使用者貢獻者Allquixotic解釋了原因:
Summary
The immediate problem is that the programs that you have minimized are being paged out to the “page file” on your hard disk. This symptom can be improved by installing a Solid State Disk (SSD), adding more RAM to your system, reducing the number of programs you have open, or upgrading to a newer system architecture (for instance, Ivy Bridge or Haswell). Out of these opti***, adding more RAM is generally the most effective solution.
Explanation
The default behavior of Windows is to give active applicati*** priority over inactive applicati*** for having a spot in RAM. When there’s significant memory pressure (meaning the system doesn’t have a lot of free RAM if it were to let every program have all the RAM it wants), it starts putting minimized programs into the page file, which means it writes out their contents from RAM to disk, and then makes that area of RAM free. That free RAM helps programs you’re actively using — say, your web browser — run faster, because if they need to claim a new segment of RAM (like when you open a new tab), they can do so.
This “free” RAM is also used as page cache, which means that when active programs attempt to read data on your hard disk, that data might be cached in RAM, which prevents your hard disk from being accessed to get that data. By using the majority of your RAM for page cache, and swapping out unused programs to disk, Windows is trying to improve resp***iveness of the program(s) you are actively using, by making RAM available to them, and caching the files they access in RAM instead of the hard disk.
The downside of this behavior is that minimized programs can take a while to have their contents copied from the page file, on disk, back into RAM. The time increases the larger the program’s footprint in memory. This is why you experience that delay when maximizing Photoshop.
RAM is many times faster than a hard disk (depending on the specific hardware, it can be up to several orders of magnitude). An SSD is c***iderably faster than a hard disk, but it is still slower than RAM by orders of magnitude. Having your page file on an SSD will help, but it will also wear out the SSD more quickly than usual if your page file is heavily utilized due to RAM pressure.
Remedies
Here is an explanation of the available remedies, and their general effectiveness:
Links
Related questi***:
How to reduce disk thrashing (paging)?
Windows Swap (Page File): Enable or Disable?
Also, just in case you’re c***idering it, you really shouldn’t disable the page file, as this will only make matters worse; see here.
而且,如果您需要額外的說服力來保留Windows頁面檔案,請參閱這裡和這裡。
有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。
... 下面是如何透過市場宣傳,並發現為什麼有些**更好(或更糟)比他們在紙上看。 ...
... 最後,按Win+D顯示桌面,按Win+M最小化所有視窗。這比手動單擊每個視窗上的最小化按鈕快得多。 ...
... 我一直很尊重你油漆.NET因為它清楚地知道自己想要成為什麼:一個比微軟的Paint更好的影象編輯器,而不像GIMP和adobephotoshop那樣臃腫或害怕學習。它正好在中間。 ...
...易設定,足以處理所有電子郵件。但乍一看會覺得很亂。為什麼不讓它成為一個更好的電子郵件客戶端只是幾個快速調整? ...
...用程式的工作方式略有不同。我們來談談它們的異同。 什麼是拆分檢視(split view)? 拆分檢視和幻燈片的主要區別在於,在使用多個應用程式時,每個應用程式佔用的螢幕空間有多大。它們在功能上也有所不同,每種都適合不...
...以設定時間限制(如果您選擇了播放列表)。無論你選擇什麼時間限制,Alexa都會停止播放音樂。否則,它將一直播放到播放列表的末尾,或者您將其關閉。 輕觸右上角的“下一步”。 檢查一下你所有的常規動作都是正確的,...
...。但是每個平臺的解決方案略有不同,所以讓我們來談談為什麼在Android上會出現這種情況,以及如何修復它。 作業系統更新和更重的應用程式需要更多的資源 你的Android**沒有一年前的軟體(至少應該沒有)。如果你收到了And...
...來有點慢。例如,如果禁用關聯的動畫,Windows可以立即最小化和最大化視窗。 要禁用動畫,請按Windows鍵+X或右鍵單擊“開始”按鈕並選擇“系統”。單擊左側的“高階系統設定”,然後單擊“效能”下的“設定”按鈕。選擇“...
...系統使用的位元組系統是一組8位串在一起的位。 相關:為什麼你可能得不到你支付的網速(以及如何判斷) 這一區別是表面上,一切似乎都會破裂。你知道,你有一個寬頻連線,它每秒可以40兆位元(在理想的條件下,40000000...
...啟動計算機實際上可以解決許多問題。 這是怎麼回事?為什麼重置裝置或重新啟動程式可以解決這麼多問題?為什麼極客們不試著去發現和解決問題,而不是用“重置它”這個鈍錘呢? 這不僅僅是關於windows 請記住,此解決方...