{"id":3622,"date":"2011-02-10T09:52:27","date_gmt":"2011-02-10T08:52:27","guid":{"rendered":"http:\/\/www.nighted.com\/?p=3622"},"modified":"2011-02-10T02:19:35","modified_gmt":"2011-02-10T01:19:35","slug":"ssd-ocz-vertex-2-su-macbook-seconda-parte","status":"publish","type":"post","link":"https:\/\/www.nighted.com\/?p=3622","title":{"rendered":"SSD OCZ Vertex 2 su Macbook: seconda parte."},"content":{"rendered":"<p>Come promesso ieri, elencher&ograve; in questo post le accortezze &quot;minime&quot; da prendere per ottimizzare l&#39;uso di un SSD su Mac OS.<br \/>\n\tIl maggior limite delle unit&agrave; a stato solido &egrave; il deterioramento della memoria flash dovuto alla scrittura dei dati. In pratica pi&ugrave; li si usano e prima si consumano. Secondo i produttori la vita media di un SSD &egrave; ampiamente sufficiente per un utente comune (tra cui mi ci metto pure io), ma ci&ograve; non toglie che limitare il numero di scritture superflue &egrave; utile a far vivere di pi&ugrave; il &quot;disco&quot;.<\/p>\n<p><strong><span style=\"color:#f00;\">ATTENZIONE! Non mi prendo responsabilit&agrave; per eventuali problemi ai vostri computer in seguito all&#39;applicazione delle seguenti procedure.<\/span><\/strong><\/p>\n<p>Questi sono i passaggi che ho eseguito dopo l&#39;installazione di Snow Leopard sul nuovo SSD OCZ Vertex 2:<\/p>\n<p><strong>1 &#8211;&nbsp;Ibernazione del sistema.<\/strong><br \/>\n\tLa prima cosa da fare su un Mac con SSD come disco di avvio &egrave; disattivare l&#39;ibernazione del sistema. In questo modo il contenuto della RAM non viene scritto sul disco ogni volta che si manda il computer in &quot;Stop&quot;.<\/p>\n<p>Per questo c&#39;&egrave; il modo drastico scrivendo, sul terminale, i seguenti comandi:<\/p>\n<p><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">sudo pmset -a hibernatemode 0<\/span><\/span><\/span><\/strong><\/p>\n<p>A questo punto &egrave; possibile anche eliminare il file immagine eventualmente salvato in precedenza con il seguente comando:<\/p>\n<p><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">sudo rm \/var\/vm\/sleepimage<\/span><\/span><\/span><\/strong><\/p>\n<p>In alternativa ai comandi da terminale potete usare&nbsp;<a href=\"http:\/\/www.jinx.de\/SmartSleep.html\">Smartsleep<\/a>, un programmino che vi permette di fare i due passaggi suddetti direttamente dalle preferenze di sistema (senza scomodare il terminale in caso voleste riabilitare l&#39;ibernazione).&nbsp;<\/p>\n<p><strong>2 &#8211; SSD in pausa.<br \/>\n\t<\/strong>Mettere a riposo un SSD non &egrave; necessario e pare che alcuni SSD abbiano problemi a risvegliarsi, quindi potete regolare le preferenze di sistema cos&igrave;:<\/p>\n<p style=\"text-align: center; \"><a href=\"\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3623\" data-permalink=\"https:\/\/www.nighted.com\/?attachment_id=3623\" data-orig-file=\"https:\/\/i0.wp.com\/www.nighted.com\/wp-content\/uploads\/2011\/02\/energy_saving.jpg?fit=634%2C257&amp;ssl=1\" data-orig-size=\"634,257\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"energy_saving\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.nighted.com\/wp-content\/uploads\/2011\/02\/energy_saving.jpg?fit=300%2C121&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.nighted.com\/wp-content\/uploads\/2011\/02\/energy_saving.jpg?fit=634%2C257&amp;ssl=1\" alt=\"\" class=\"aligncenter size-medium wp-image-3623\" height=\"191\" src=\"https:\/\/i0.wp.com\/www.nighted.com\/wp-content\/uploads\/2011\/02\/energy_saving.jpg?resize=474%2C191\" title=\"energy_saving\" width=\"474\" srcset=\"https:\/\/i0.wp.com\/www.nighted.com\/wp-content\/uploads\/2011\/02\/energy_saving.jpg?w=634&amp;ssl=1 634w, https:\/\/i0.wp.com\/www.nighted.com\/wp-content\/uploads\/2011\/02\/energy_saving.jpg?resize=300%2C121&amp;ssl=1 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/a><\/p>\n<p><strong>3 &#8211;&nbsp;Abilitare noatime.<\/strong><br \/>\n\tSu sistemi Unix, Linux e chiss&agrave; cos&#39;altro (Mac OS incluso) il sistema operativo aggiorna la data e l&#39;ora di modifica dei files ogni volta che questi vengono letti. Questo implica una continua scrittura sul disco che pu&ograve; essere evitata con la seguente procedura:<\/p>\n<p>Create un file di testo incollandoci il seguente codice:<\/p>\n<div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&lt;!DOCTYPE plist PUBLIC &quot;-\/\/Apple\/\/DTD PLIST 1.0\/\/EN&quot; &quot;http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd&quot;&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&lt;plist version=&quot;1.0&quot;&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp;&lt;dict&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;key&gt;Label&lt;\/key&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;string&gt;com.noatime.root&lt;\/string&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;key&gt;ProgramArguments&lt;\/key&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;array&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;string&gt;mount&lt;\/string&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;string&gt;-uwo&lt;\/string&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;string&gt;noatime&lt;\/string&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;string&gt;\/&lt;\/string&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;\/array&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;key&gt;RunAtLoad&lt;\/key&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;true\/&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&nbsp;&nbsp; &nbsp;&lt;\/dict&gt;<\/span><\/span><\/span><\/strong><\/div>\n<div><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">&lt;\/plist&gt;<\/span><\/span><span class=\"Apple-style-span\" style=\"font-family: 'courier new', courier, monospace; \">&nbsp;<\/span><\/span><\/strong><\/div>\n<\/div>\n<p>Chiamate il file di testo <em>com.noatime.root.plist<\/em> e salvatelo nella directory <em>\/Library\/LaunchDaemons\/<br \/>\n\t<\/em>Attenzione, l&#39;estensione del fine deve essere <em>.plist<\/em>, non <em>.txt<\/em>, controllate attentamente.<br \/>\n\tFatto questo eseguite il seguente comando da terminale:<\/p>\n<div>\n<p><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">sudo chown root:wheel \/Library\/LaunchDaemons\/com.noatime.root.plist<\/span><\/span><\/span><\/strong><\/p>\n<\/div>\n<div>Riavviate il computer per attivare noatime. Potete controllare se &egrave; attivo con il seguente comando da terminale:<\/div>\n<div>\n<p><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">mount | grep &quot; \/ &quot;<\/span><\/span><\/span><\/strong><\/p>\n<\/div>\n<div>dovreste leggere qualche cosa di simile a questo:<\/div>\n<div>\n<p><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">\/dev\/disk0s2 on \/ (hfs, local, journaled, noatime)<\/span><\/span><\/span><\/strong><\/p>\n<\/div>\n<p>potete abilitare noatime con lo stesso procedimento anche su un normale HDD.<\/p>\n<p><strong>4 &#8211; Disabilitare l&#39;SMS:<\/strong><br \/>\n\tIl <a href=\"http:\/\/it.wikipedia.org\/wiki\/Sudden_Motion_Sensor\">Sudden Motion Sensor<\/a> non serve sugli SSD, per cui &egrave; possibile disabilitarlo digitando il seguente comando su terminale:<\/p>\n<p><strong><span style=\"color:#696969;\"><span style=\"font-size:14px;\"><span style=\"font-family:courier new,courier,monospace;\">sudo pmset -a sms 0<\/span><\/span><\/span><\/strong><\/p>\n<p>Oltre a questi suggerimenti, potete trovare in giro guide per spostare la cache di Safari su un RAM disk, o istruzioni per disabilitare Spotlight sul disco di avvio, ma mi sembra esagerato. Gi&agrave; seguendo questa guida dovreste ridurre le scritture non necessarie abbastanza da farvi dormire donni tranquilli!<\/p>\n<p>A domani per l&#39;ultima parte su come migliorare l&#39;uso di un SSD (e HDD) su Mac OS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Come promesso ieri, elencher&ograve; in questo post le accortezze &quot;minime&quot; da prendere per ottimizzare l&#39;uso di un SSD su Mac OS. Il maggior limite delle unit&agrave; a stato solido &egrave; il deterioramento della memoria flash dovuto alla scrittura dei dati. In pratica pi&ugrave; li si usano e prima si consumano. Secondo i produttori la vita &hellip; <a href=\"https:\/\/www.nighted.com\/?p=3622\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SSD OCZ Vertex 2 su Macbook: seconda parte.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[36],"tags":[81,16,101],"class_list":["post-3622","post","type-post","status-publish","format-standard","hentry","category-tecnologia","tag-computer","tag-informazione","tag-tecnologia"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pIiyp-Wq","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.nighted.com\/index.php?rest_route=\/wp\/v2\/posts\/3622"}],"collection":[{"href":"https:\/\/www.nighted.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nighted.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nighted.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nighted.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3622"}],"version-history":[{"count":12,"href":"https:\/\/www.nighted.com\/index.php?rest_route=\/wp\/v2\/posts\/3622\/revisions"}],"predecessor-version":[{"id":3637,"href":"https:\/\/www.nighted.com\/index.php?rest_route=\/wp\/v2\/posts\/3622\/revisions\/3637"}],"wp:attachment":[{"href":"https:\/\/www.nighted.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nighted.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nighted.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}