{"id":802,"date":"2012-10-28T10:14:12","date_gmt":"2012-10-28T09:14:12","guid":{"rendered":"https:\/\/www.kolja-engelmann.de\/blog\/?p=802"},"modified":"2012-10-28T10:14:12","modified_gmt":"2012-10-28T09:14:12","slug":"boxcryptor-beschleunigen-durch-grosere-blocksize","status":"publish","type":"post","link":"https:\/\/www.kolja-engelmann.de\/blog\/2012\/10\/boxcryptor-beschleunigen-durch-grosere-blocksize\/","title":{"rendered":"BoxCryptor beschleunigen durch gr\u00f6\u00dfere Blocksize"},"content":{"rendered":"<p>Als ich mit der aktuellenVersion 1.4 von BoxCryptor herumspielte stellte ich fest, dass ich dort die M\u00f6glichkeit habe Keyl\u00e4nge und Blockgr\u00f6\u00dfe der Verschl\u00fcsselung eines neuen BoxCryptor-gesicherten Ordners einzustellen. Das lud mich zum Spielen ein, denn eine gr\u00f6\u00dfere Blocksize bedeutet , dass mehr Daten am St\u00fcck gelesen werden und damit die Ausf\u00fchrungsgeschwindigkeit <a title=\"Geschwindigkeitsvergleich BoxCryptor vs EncFS\" href=\"https:\/\/www.kolja-engelmann.de\/blog\/2012\/06\/geschwindigkeitsvergleich-boxcryptor-vs-encfs\/\">gegen\u00fcber meines letzten Tests<\/a> steigen k\u00f6nnte.<\/p>\n<p><a href=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_blocksize.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-804\" title=\"Boxcryptor Blocksize\" src=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_blocksize-500x435.png\" alt=\"\" width=\"500\" height=\"435\" srcset=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_blocksize-500x435.png 500w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_blocksize-300x261.png 300w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_blocksize.png 540w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Nat\u00fcrlich muss man die Blocksize nicht jedesmal \u00fcber die Oberfl\u00e4che anpassen und daf\u00fcr einen neuen Ordner erstellen, es reicht auch wenn man zu Testzwecken die <code>.encfs6<\/code> Datei im zu verschl\u00fcsselnden Ordner editiert und die Zeile <code>&lt;blockSize&gt;4096&lt;\/blockSize&gt;<\/code> seinen W\u00fcnschen anpasst. Das sollte man aber nicht nachtr\u00e4glich machen, denn dann k\u00f6nnen die bereits verschl\u00fcsselten Daten nicht mehr gelesen werden (logisch, wenn immer blockweise verschl\u00fcsselt wird, ne?) Nun aber zu meinen nicht repr\u00e4sentativen Ergebnissen:<\/p>\n\n\t\t<style>\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 50%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n\t\t<div id='gallery-1' class='gallery galleryid-802 gallery-columns-2 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_1024.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_1024-150x150.png\" class=\"attachment-thumbnail size-thumbnail no-lazy\" alt=\"\" aria-describedby=\"gallery-1-808\" srcset=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_1024-150x150.png 150w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_1024-160x160.png 160w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_1024-120x120.png 120w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-808'>\n\t\t\t\tBoxCryptor Blocksize 1024\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_4096.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_4096-150x150.png\" class=\"attachment-thumbnail size-thumbnail no-lazy\" alt=\"\" aria-describedby=\"gallery-1-809\" srcset=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_4096-150x150.png 150w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_4096-160x160.png 160w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_4096-120x120.png 120w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-809'>\n\t\t\t\tBoxCryptor Blocksize 4096\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_8192.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_8192-150x150.png\" class=\"attachment-thumbnail size-thumbnail no-lazy\" alt=\"\" aria-describedby=\"gallery-1-810\" srcset=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_8192-150x150.png 150w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_8192-160x160.png 160w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_8192-120x120.png 120w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-810'>\n\t\t\t\tBoxCryptor Blocksize 8192\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_16384.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_16384-150x150.png\" class=\"attachment-thumbnail size-thumbnail no-lazy\" alt=\"\" aria-describedby=\"gallery-1-811\" srcset=\"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_16384-150x150.png 150w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_16384-160x160.png 160w, https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_10_2012_16384-120x120.png 120w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-811'>\n\t\t\t\tBoxCryptor Blocksize 16384\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n<p>[clearboth]<\/p>\n<p>Wie man sieht steigt die Lese- und Schreibleistung mit jeder Erh\u00f6hung. Jetzt mag man nat\u00fcrlich versucht sein die Blockgr\u00f6\u00dfe immer h\u00f6her zu schrauben, denn das reduziert den Overhead der encFS basierten Verschl\u00fcsselung. Andererseits macht es nur dann Sinn, wenn man immer Dateien ablegt, liest oder schreibt, die gr\u00f6\u00dfer als die Blocksize sind. M\u00f6chte man eine kleinere Datei ablegen so kehrt sich der Vorteil ganz schnell um, wie man ab den Blockgr\u00f6\u00dfen 8192 und 16384 sieht (untere zwei Testf\u00e4lle). Selbst wenn man nur ein Byte schreiben m\u00f6chte muss BoxCryptor (bzw encFS) stets den gesamten Block lesen, dechiffrieren, die \u00c4nderungen durchf\u00fchren und den ganzen Block wieder zur\u00fcckschreiben. Ich denke den besten Kompromiss aus guter sequentieller und Geschwindigkeit bei kleinen Datenbl\u00f6cken hat man bei der Blockgr\u00f6\u00dfe 4096byte, die ja auch als Defaultwert von BoxCryptor verwendet wird.<\/p>\n<p>Dennoch hoffe ich noch immer darauf, dass sich durch weitere Optimierungen die Geschwindigkeit der von Truecrypt ann\u00e4hert, oder eine <a title=\"gKrypt \u2013 AES Verschl\u00fcsselung via GPU\" href=\"https:\/\/www.kolja-engelmann.de\/blog\/2012\/07\/gkrypt-aes-verschlusselung-via-gpu\/\">Grafikkartenbeschleunigung wie bei gKrypt<\/a> eingebaut wird.<\/p>","protected":false},"excerpt":{"rendered":"<p>Als ich mit der aktuellenVersion 1.4 von BoxCryptor herumspielte stellte ich fest, dass ich dort die M\u00f6glichkeit habe Keyl\u00e4nge und Blockgr\u00f6\u00dfe der Verschl\u00fcsselung eines neuen BoxCryptor-gesicherten Ordners einzustellen. Das lud mich zum Spielen ein, denn&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":805,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[29,16,33],"class_list":["post-802","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","tag-boxcryptor","tag-encfs","tag-verschlusselung"],"jetpack_featured_media_url":"https:\/\/www.kolja-engelmann.de\/blog\/wp-content\/uploads\/2012\/10\/boxcryptor_logo.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/comments?post=802"}],"version-history":[{"count":0,"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/posts\/802\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/media\/805"}],"wp:attachment":[{"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/media?parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/categories?post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolja-engelmann.de\/blog\/wp-json\/wp\/v2\/tags?post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}