[建議][partclone] 以 xxhash 取代 crc32 成為預設checksum演算法

233 views
Skip to first unread message

Lord65

unread,
Mar 16, 2021, 2:57:08 AM3/16/21
to 再生龍clonezilla
https://chromium.googlesource.com/external/github.com/Cyan4973/xxHash/+/375d401bd4a4eba07ee75d6e627546052cb5b0ec/README.md

xxhash(zstd開發者的另一個專案)速度是crc32的十倍以上,目前已經非常穩定。

雖然目前partclone的crc32還夠用(大部分瓶頸還是在I/O跟壓縮上),但隨著高速儲存媒體的普及,可能換用一個更高效能的checksum演算法會是個不錯的選擇。

如果可能的話,新建立的影像檔案預設以xxhasn作為checksum,舊有的影像檔解壓/測試時則以判讀檔頭來決定是否呼叫crc32相關常式來處理

:)

Lord65

unread,
Mar 16, 2021, 4:50:45 AM3/16/21
to 再生龍clonezilla
附上 xxhash github 網址

https://github.com/Cyan4973/xxHash

Steven Shiau

unread,
Mar 18, 2021, 8:20:59 AM3/18/21
to ocs-clo...@googlegroups.com, Lord65
謝謝建議。我們會列入考慮。當開發人員時間足夠的時候,就有機會加上這個新的演算法。

Steven
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> <mailto:ocs-clonezill...@googlegroups.com>。
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/61455e4e-4feb-4a2a-a33c-4a06b85039a2n%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/61455e4e-4feb-4a2a-a33c-4a06b85039a2n%40googlegroups.com?utm_medium=email&utm_source=footer>。

--
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5 356C 8E94 C9CD 163E 3FB0

otto...@gmail.com

unread,
Nov 18, 2021, 4:09:46 AM11/18/21
to 再生龍clonezilla
Debian 有收錄 xxhash,應該之後有機會加入 https://tracker.debian.org/pkg/xxhash



Steven Shiau 在 2021年3月18日 星期四下午8:20:59 [UTC+8] 的信中寫道:

Steven Shiau

unread,
Nov 19, 2021, 11:51:26 PM11/19/21
to ocs-clo...@googlegroups.com
有機會加入 https://tracker.debian.org/pkg/xxhash的意思是?

Steven

On 11/18/21 12:56 PM, otto...@gmail.com wrote:
> Debian 有收錄 xxhash,應該之後有機會加入
> https://tracker.debian.org/pkg/xxhash
>
>
>
> Steven Shiau 在 2021年3月18日 星期四下午8:20:59 [UTC+8] 的信中寫道:
>
> 謝謝建議。我們會列入考慮。當開發人員時間足夠的時候,就有機會加上這個新的演算法。
>
>
> Steven
>
> On 3/16/21 2:41 PM, Lord65 wrote:
> >
> https://chromium.googlesource.com/external/github.com/Cyan4973/xxHash/+/375d401bd4a4eba07ee75d6e627546052cb5b0ec/README.md
> <https://chromium.googlesource.com/external/github.com/Cyan4973/xxHash/+/375d401bd4a4eba07ee75d6e627546052cb5b0ec/README.md>
>
> >
> >
> xxhash(zstd開發者的另一個專案)速度是crc32的十倍以上,目前已經非常穩定。
>
> >
> >
> 雖然目前partclone的crc32還夠用(大部分瓶頸還是在I/O跟壓縮上),但隨著高速儲存媒體的普及,可能換用一個更高效能的checksum演算法會是個不錯的選擇。
> >
> >
> >
> 如果可能的話,新建立的影像檔案預設以xxhasn作為checksum,舊有的影像檔解壓/測試時則以判讀檔頭來決定是否呼叫crc32相關常式來處理
>
> >
> > :)
> > --
> > 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
>
> > 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> > ocs-clonezill...@googlegroups.com
> > <mailto:ocs-clonezill...@googlegroups.com>。
> > 如要在網路上查看這項討論,請造訪
> >
> https://groups.google.com/d/msgid/ocs-clonezilla/61455e4e-4feb-4a2a-a33c-4a06b85039a2n%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/61455e4e-4feb-4a2a-a33c-4a06b85039a2n%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/ocs-clonezilla/61455e4e-4feb-4a2a-a33c-4a06b85039a2n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ocs-clonezilla/61455e4e-4feb-4a2a-a33c-4a06b85039a2n%40googlegroups.com?utm_medium=email&utm_source=footer>>。
>
>
> --
> Steven Shiau <steven _at_ stevenshiau org>
> Public Key Server PGP Key ID: 4096R/163E3FB0
> Fingerprint: EB1D D5BF 6F88 820B BCF5 356C 8E94 C9CD 163E 3FB0
>
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> <mailto:ocs-clonezill...@googlegroups.com>。
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/af0fd19a-189e-4b98-bd36-c01ffb230016n%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/af0fd19a-189e-4b98-bd36-c01ffb230016n%40googlegroups.com?utm_medium=email&utm_source=footer>。

otto...@gmail.com

unread,
Nov 21, 2021, 9:32:36 PM11/21/21
to 再生龍clonezilla
喔喔意思是 debian 本身就有收錄這個 package,要加入 CloneZilla 比較方便

Steven Shiau 在 2021年11月20日 星期六下午12:51:26 [UTC+8] 的信中寫道:

Steven Shiau

unread,
Nov 21, 2021, 9:34:56 PM11/21/21
to ocs-clo...@googlegroups.com
謝謝。若只是要Clonezilla live收錄這個xxhash package,這部份沒啥問題。
若是要在partclone中將image的hash方式加強支援xxhash,就是另外一回事了。目前並沒有急迫性的需要,所以優先順序就放在很後面。

Steven
> ocs-clonezill...@googlegroups.com
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/9ef370e0-9972-4f57-a8f8-7b55f1feed94n%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/9ef370e0-9972-4f57-a8f8-7b55f1feed94n%40googlegroups.com?utm_medium=email&utm_source=footer>。

otto...@gmail.com

unread,
Dec 10, 2025, 11:37:43 PM (6 days ago) Dec 10
to 再生龍clonezilla
Partclone 已經支援 xxhash

看來 CloneZilla 可以支援了

Steven Shiau 在 2021年11月22日 星期一上午10:34:56 [UTC+8] 的信中寫道:

Steven Shiau

unread,
Dec 11, 2025, 12:07:14 AM (6 days ago) Dec 11
to ocs-clo...@googlegroups.com

當然,未來我們一定會加上這個功能。

Steven

如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到 ocs-clonezill...@googlegroups.com
如要查看這個討論,請前往 https://groups.google.com/d/msgid/ocs-clonezilla/fd098c68-92ab-43c0-a787-1096e1573db2n%40googlegroups.com

Lord65

unread,
Dec 15, 2025, 5:49:37 PM (2 days ago) Dec 15
to 再生龍clonezilla

目前看來是先導入 xxh64 測試中?

建議可以一次到位直上 xxh128,碰撞率更低、速度又更快

:)
Reply all
Reply to author
Forward
0 new messages