※ 文章網址: https://www.ptt.cc/bbs/MobileComm/M.1528893974.A.62A.html
推 jasn4560 : 你怎麼還活著啊 我以為你已經泡水去了 06/13 20:52
→ DFIGHT : 我覺得推文很歪,但這種又不好直接google找答案, 06/13 21:01
→ DFIGHT : 這篇應該很白話...... 06/13 21:01
推 fr3ak : https://i.imgur.com/0R0p0BI.png 是不是有什麼誤 06/13 21:02
→ fr3ak : 會還是我的誤解? /cache 分區等於緩存? (非戰) 06/13 21:02
→ DFIGHT : 要詳細還是要知道一個app的組成,想要更深入也可以 06/13 21:04
→ DFIGHT : ,但我怕主題跑掉 06/13 21:04
→ DFIGHT : 塞車大家都知道了,給大家理解塞人罷了 06/13 21:05
→ DFIGHT : 在討論會要用英文,我中文不好 06/13 21:06
→ jaw109 : 請問緩存是什麼中文? 06/13 21:06
推 fr3ak : Please do, I am better in English regarding te 06/13 21:08
→ fr3ak : chnical matters. 06/13 21:08
推 jasn4560 : 為啥我覺得樓上句子唸起來好怪 還是我英文太破? 06/13 21:12
推 fr3ak : 可能英文沒樓上大大的好? 06/13 21:13
推 jasn4560 : 可是我英文真的很破.... 06/13 21:14
→ fr3ak : jaw: 緩存一般指的是 buffer, cache, 中文的話可翻 06/13 21:16
→ fr3ak : 成緩衝, 快取, 也有源自對岸的緩存 06/13 21:16
→ DFIGHT : 嗯...這兒,我找蠻久的 06/13 21:27
→ DFIGHT : https://goo.gl/Eh6hvG 06/13 21:27
推 fr3ak : D 大, 先說我沒看你貼的連結, 小弟大致知道 /cach 06/13 21:36
→ fr3ak : e 分區的用途. 重點是, 就我所知是它與絕大部份 a 06/13 21:36
→ fr3ak : pp 在平時運作幾乎無關 06/13 21:36
→ fr3ak : https://i.imgur.com/TwxU8yv.png https://i.imgu 06/13 21:39
→ fr3ak : r.com/70OryH8.png 至少在我的手機上, 最近被動到 06/13 21:39
→ fr3ak : 的檔案幾乎都是 magisk 相關. 不懂 /cache 分區跟 06/13 21:39
→ fr3ak : 一般 app 平時運行的順暢與否的關係. 感謝解惑 06/13 21:39
→ fr3ak : https://i.imgur.com/TwxU8yv.png 06/13 21:40
→ fr3ak : https://i.imgur.com/70OryH8.png 06/13 21:40
→ DFIGHT : 這就要說....../app也是一個分區,你平常用/app嘛 06/13 21:42
→ DFIGHT : ,但是跑app要一些拉基給他加油加水,要不他車子跑 06/13 21:42
→ DFIGHT : 不動嘛 06/13 21:42
推 fr3ak : 圖一為按照時間排序, /cache 的檔案列表, 下面最新 06/13 21:43
→ fr3ak : 圖二是六分鐘的即時存取監控 06/13 21:44
→ fr3ak : 說好的 /cache 分區呢? /app 分區? 可能我的系統舊 06/13 21:46
→ fr3ak : (mm) 沒有 /app 分區 06/13 21:46
→ DFIGHT : 我想你問的是app不要cache也可以跑不相關是麼?app 06/13 21:52
→ DFIGHT : 時常產生垃圾來幫助它跑,但是cache的容量和ram一 06/13 21:52
→ DFIGHT : 樣是固定的,app不會一直呼叫垃圾來跑,是他會自己 06/13 21:52
→ DFIGHT : 產生垃圾來幫助自己潤滑,所以不常呼叫是很正常的 06/13 21:52
→ DFIGHT : ,拉基殺掉app還是不影響,只是你要重新跑自己想要 06/13 21:52
→ DFIGHT : 的拉基出來很麻煩,很難管,有些拉基是屬於附屬的 06/13 21:52
→ DFIGHT : ,更難管,所以我們最好的方法就是把app的其他功能 06/13 21:52
→ DFIGHT : 拔掉,權限拔掉,讓他剩下自己要的且不會黑屏,限 06/13 21:52
→ DFIGHT : 制拉基是屬於有用的 06/13 21:52
推 fr3ak : 我要說的是 (至少在我的手機上), 除了 magisk 在那 06/13 21:55
→ fr3ak : 邊寫 log 之外, 大多數時候 /cache 分區根本沒人去 06/13 21:55
→ fr3ak : 讀或寫, 因此不懂 /cache 分區與 app 的日常運作順 06/13 21:55
→ fr3ak : 暢與否之間的關係 06/13 21:55
→ DFIGHT : 讀圖案的看照片的舉例,他跑一次會產生拉基,這拉 06/13 22:02
→ DFIGHT : 基是讓你跑看照片app更順,但是這個拉基是一旦太多 06/13 22:02
→ DFIGHT : ,其他app的拉基就沒辦法產生,每個app都要拉基, 06/13 22:02
→ DFIGHT : 沒地方產生拉基,那就很頓,但還是可以跑app,你每 06/13 22:02
→ DFIGHT : 殺掉一次看照片app的拉基,他就會重新變慢,然後慢 06/13 22:02
→ DFIGHT : 慢產生拉基加快app速度這樣,我們不喜歡就是這樣, 06/13 22:02
→ DFIGHT : 我要的功能的拉基和不想要的拉基很難管,那我只能 06/13 22:02
→ DFIGHT : 砍掉app功能或是砍掉app來管,這沒辦法的事 06/13 22:02
→ fr3ak : 先說結論是同意的, 我自己也是會去關掉不想讓 app 06/13 22:03
→ fr3ak : 用的權限, 擋掉 intent, 甚至停用特定 activity. 06/13 22:03
→ fr3ak : 但還是認真求解 /cache 分區 06/13 22:03
→ fr3ak : 筆誤. activity (x) receiver (o) 06/13 22:05
推 fr3ak : 未答先猜原 po 說的是 dalvik/art cache 以及 app 06/13 22:13
→ fr3ak : 自行產生的 cache (如 browser cache). 就我所知 06/13 22:13
→ fr3ak : , 至少在我的手機上, 那些都不是放在 /cache 分區 06/13 22:13
→ DFIGHT : 除了google以外,我有時候也會問wiki 06/13 22:13
→ DFIGHT : https://goo.gl/iRgcYd 06/13 22:13
推 fr3ak : Cache != /cache 分區 06/13 22:16
推 fr3ak : D 大貼的圖是 /cache 分區 06/13 22:17
推 fr3ak : D, I honestly think Chinese isn't the best too 06/13 22:35
→ fr3ak : l to resolve the communication gap here. The t 06/13 22:35
→ fr3ak : hread is like 雞同鴨講. The thing that confuse 06/13 22:35
→ fr3ak : s me is not "cache", but the partition /cache. 06/13 22:35
→ fr3ak : To the best of my knowledge, /cache partition 06/13 22:35
→ fr3ak : has nothing to do with how smooth apps run, o 06/13 22:35
→ fr3ak : nce booted. 06/13 22:35
→ fr3ak : I don't know if you realise, the screen cap yo 06/13 22:37
→ fr3ak : u posted in OP are your partitions, the label 06/13 22:37
→ fr3ak : cache in it is your /cache partition 06/13 22:37
→ fr3ak : Neither dalvik/art cache, nor app generated ca 06/13 22:41
→ fr3ak : che (e.g. browser cache) resides in /cache par 06/13 22:41
→ fr3ak : tition. Hence, to the best of my knowledge, /c 06/13 22:41
→ fr3ak : ache partition does not play a part in apps' d 06/13 22:41
→ fr3ak : aily operation in run time, once booted 06/13 22:41
推 fr3ak : As to your conclusion, I am with you. I am all 06/13 22:48
→ fr3ak : for strict monitoring and control apps' permi 06/13 22:48
→ fr3ak : ssions and functionality 06/13 22:48
→ DFIGHT : 嗯......其實我之前有過回答類似這個,好像以前有 06/13 22:50
→ DFIGHT : 人問我什麼/system分區和/data分區,我記得好像也 06/13 22:50
→ DFIGHT : 是不能讓他滿意。在cpu呼叫/data後,所產生更快速 06/13 22:50
→ DFIGHT : 幫助/app運行的,而產生拉基在/cache分區,有些手 06/13 22:50
→ DFIGHT : 機的"正在執行的app"顯示ram,另一個選項的背景的a 06/13 22:50
→ DFIGHT : pp顯示cache。而/cache很小,他在cpu裡面,所以對 06/13 22:50
→ DFIGHT : 我們而言ram太好掌控了,cache反而不好管,他的檔 06/13 22:50
→ DFIGHT : 案名稱很多,可以的話我們其實都是直接刷掉/cache 06/13 22:50
→ DFIGHT : ,多刷刷,只要app正常都不會黑屏,我是有時候會黑 06/13 22:50
→ DFIGHT : 啦,因為我授權開開關關玩來玩去的...... 06/13 22:50
推 fr3ak : 問題是似乎不是這樣啊, 不是有貼給你開, 除了開機 06/13 22:55
→ fr3ak : 相關以及 magisk, 沒有人去碰 /cache partition 啊 06/13 22:55
→ fr3ak : . 至少我的手機是這樣啦. Moto stock MM rom (AOS 06/13 22:55
→ fr3ak : P-ish), rooted with magisk. 06/13 22:55
→ fr3ak : Emphasis "cache" is not "/cache" partition 06/13 22:56
→ fr3ak : 筆誤. 貼給你開 (x) 貼給你看 (o) 06/13 22:58
→ fr3ak : 等等, /cache 在 cpu 裏? (黑人問號) I think it' 06/13 23:01
→ fr3ak : s best if we stop here. :-) 06/13 23:01
→ fr3ak : Dalvik/art cache != app generated cache != /ca 06/13 23:03
→ fr3ak : che partition != cpu cache 06/13 23:03
→ DFIGHT : 是相等的吧? 06/13 23:21
→ DFIGHT : https://goo.gl/553nkK 06/13 23:23
→ DFIGHT : 可以wiki一下啊,這三者是相等的 06/13 23:24
→ DFIGHT : 有點難解釋,你能直接看我貼第一篇連結麼 06/13 23:26
推 fr3ak : OK, whatever you say. I am done here. 06/13 23:28
→ fr3ak : I was being polite, I KNOW what /cache partiti 06/13 23:30
→ fr3ak : on is. Really, we haven't touch the level of d 06/13 23:30
→ fr3ak : etail that would make me revisit the page 06/13 23:30
→ DFIGHT : 你認為我講不一樣的東西啊,我想說我換另一個解釋 06/13 23:31
→ DFIGHT : 的說,是同一個東西......xddd 06/13 23:31
推 fr3ak : Rephrase. I KNOW the 4 types of cache mentione 06/13 23:36
→ fr3ak : d in this thread to decent level of detail. No 06/13 23:36
→ fr3ak : , they are not the same. Most importantly, the 06/13 23:36
→ fr3ak : partition /cache isn't what you think it is. 06/13 23:36
推 fr3ak : I would blame it on the bad name. Nevertheless 06/13 23:41
→ fr3ak : , it would really help if you would study the 06/13 23:41
→ fr3ak : subject a bit more before we continue the conv 06/13 23:41
→ fr3ak : ersation 06/13 23:41
推 fr3ak : Just for the sake of it, I read your 1st link 06/13 23:56
→ fr3ak : regarding clearing the cache dir. It's an app 06/13 23:56
→ fr3ak : specific folder resides in app's data filder, 06/13 23:56
→ fr3ak : which is not under /cache partition 06/13 23:56
→ fr3ak : https://i.imgur.com/noc1Wao.png Take the imgur 06/13 23:57
→ fr3ak : client I use for example, it's in /data/data/ 06/13 23:57
→ fr3ak : com.imgur.mobile 06/13 23:57
推 fr3ak : https://i.imgur.com/NPbCN5S.png And guess whic 06/14 00:03
→ fr3ak : h partition it resides on? No, not /cache, it' 06/14 00:03
→ fr3ak : s on /data. 06/14 00:03
推 fr3ak : https://i.imgur.com/NxaYJUz.png Just found out 06/14 00:50
→ fr3ak : the command 'stat' in termux doesn't work pro 06/14 00:50
→ fr3ak : perly for querying mount-point/filesystem 06/14 00:50
→ fr3ak : I had to use the applet 'df' in a custom versi 06/14 00:52
→ fr3ak : on of busybox (via magisk) to get it properly. 06/14 00:52
→ fr3ak : You may not be able to reproduce this result. 06/14 00:52
→ fr3ak : It's on /data, just take my words for it, 06/14 00:52
→ DFIGHT : 對啊,在/data裡面啊 06/14 11:36
→ DFIGHT : 這樣解除安裝的時候,一併刪除/cache啊 06/14 11:38
→ DFIGHT : 對啊/cache在指定app裡面啊 06/14 11:39
→ DFIGHT : 不不不,我所說的/cache就是在/data裡面 06/14 11:40
→ DFIGHT : 欸......然後咧?/cache在/data裡面會怎樣麼@@ 06/14 11:41
→ DFIGHT : 其實cache有分內部和外部,你可以在rom裡面有些舊 06/14 11:45
→ DFIGHT : 手機在sd卡上,都可以看到,但是這個外部/cache是 06/14 11:45
→ DFIGHT : 不限制容量的,也就是說,內部的/data/data/abcdef 06/14 11:45
→ DFIGHT : g/cache才會塞到 06/14 11:45
→ DFIGHT : 喔你是問路徑? 06/14 11:52
→ DFIGHT : 我們安裝在/data/app裡面的app,他會在/data/data 06/14 11:56
→ DFIGHT : 產生app名稱的路徑,然後有/files和/cache,平常都 06/14 11:56
→ DFIGHT : 是/files在跑然後拉基幫忙,這樣......ok嗎== 06/14 11:56
推 fr3ak : The dir /cache, is a top level dir, i.e. in ro 06/14 16:18
→ fr3ak : ot. AFAIK, it is a partition of its own. App c 06/14 16:18
→ fr3ak : ache dirs resides in app specific dirs, e.g. / 06/14 16:18
→ fr3ak : data/data/some.app.com/cache. One could refer 06/14 16:18
→ fr3ak : the latter as "app cache dir", or as simply as 06/14 16:18
→ fr3ak : "cache dir" in relevant content. However, in 06/14 16:18
→ fr3ak : my professional career, never had I seen anyon 06/14 16:18
→ fr3ak : e prefix the latter with slash, i.e. "/cache", 06/14 16:18
→ fr3ak : that's THE /cache partition. Please do your h 06/14 16:18
→ fr3ak : ome work. 06/14 16:18
→ fr3ak : Correction: content (x) content (o) 06/14 16:19
→ fr3ak : content (x) context (o) 06/14 16:20
推 fr3ak : Tech geeks (pro or not), we try to be as speci 06/14 16:28
→ fr3ak : fic as we can. Sure, geeks are also human and 06/14 16:28
→ fr3ak : can be lazy to say/type mouthful words, but ne 06/14 16:28
→ fr3ak : ver prefix a non-top-level dir with slash 06/14 16:28
→ fr3ak : Don't feel the same? Try do it in any decent t 06/14 16:31
→ fr3ak : ech community, and see how they react. 06/14 16:31
推 Arbin : 如果要說/data底下的cache不會是打「底下的/cache 06/14 17:00
→ Arbin : 」啦... 06/14 17:00
→ Arbin : 簡單來說就是 因為/cache是真有其物 所以原PO的「 06/14 17:02
→ Arbin : 讓我們往下看到/cache」這樣誤會大了 06/14 17:02
推 Arbin : 一般在說unix的路徑時 用/data/cache等一次說完 不 06/14 17:08
→ Arbin : 會像原PO這麼說 一次說完比較不會產生不必要的誤會 06/14 17:08
→ Arbin : XD 06/14 17:08
→ Arbin : 不過這邊不適合這樣說 因為實際上cache路徑會是「/ 06/14 17:08
→ Arbin : data/data/程式名稱/cache」或是其它地方 名稱有夠 06/14 17:08
→ Arbin : 長 06/14 17:08
→ Arbin : 不然就換個說法 「app在/data下 而app會產生cache 06/14 17:08
→ Arbin : 」這樣應該就可以明確表達原PO的意思又不會誤會xD 06/14 17:08
→ DFIGHT : 這...... 06/14 18:49
→ DFIGHT : 是喔...... 06/14 18:49
→ DFIGHT : @@/system啦/data啦/cache都只是省略要不要打一長 06/14 19:03
→ DFIGHT : 串...... 06/14 19:03