{"id":78,"date":"2010-11-23T11:36:00","date_gmt":"2010-11-23T11:36:00","guid":{"rendered":"https:\/\/gibello.es\/?p=78"},"modified":"2010-11-23T11:36:00","modified_gmt":"2010-11-23T11:36:00","slug":"aumento-de-velocidad-milagroso-en-ubuntu-10-10-maverick","status":"publish","type":"post","link":"https:\/\/gibello.es\/?p=78","title":{"rendered":"Aumento de velocidad \u00abmilagroso\u00bb en ubuntu 10.10 maverick"},"content":{"rendered":"<div style=\"font-family: Arial,Helvetica,sans-serif;\">Hace unos d\u00edas hubo una noticia bastante buena para la comunidad linux, han creado un parche que aumenta el rendimiento de linux de manera espectacular, sobre todo en multitarea.Y como digo yo, ya que para mi gusto iba bastante bien, imaginaos si aplicamos este simple parche.<\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\">En un linux normal son 200 l\u00edneas, pero en ubuntu la cosa es m\u00e1s simple, con 4 l\u00edneas basta.<\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\">Lo he comprobado en varios equipos, donde m\u00e1s se nota es en el equipo de 4 n\u00facleos.<\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\"><\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\">Realizamos lo siguiente:<\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"background-color: #cfe2f3;\">$ sudo su <\/span><\/div>\n<div style=\"background-color: #cfe2f3; font-family: Arial,Helvetica,sans-serif;\">$ mkdir -p \/dev\/cgroup\/cpu<br \/>$ mount -t cgroup cgroup \/dev\/cgroup\/cpu -o cpu<br \/>$ mkdir -m 0777 \/dev\/cgroup\/cpu\/user<br \/>$ echo \u00ab\/usr\/local\/sbin\/cgroup_clean\u00bb &gt; \/dev\/cgroup\/cpu\/release_agent<\/div>\n<div style=\"background-color: #cfe2f3; font-family: Arial,Helvetica,sans-serif;\">Le damos permisos:<br \/>$ chmod +x \/etc\/rc.local<\/div>\n<div style=\"background-color: #cfe2f3; font-family: Arial,Helvetica,sans-serif;\">Editamos el ~\/.bashrc:<br \/>$ gedit ~\/.bashrc<br \/>Pegamos el siguiente c\u00f3digo al final del archivo de texto:<\/p>\n<p><b>if [ \u00ab$PS1\u00bb ] ;<\/b><br \/><b>then mkdir -m 0700 \/dev\/cgroup\/cpu\/user\/$<\/b><br \/><b>echo $ &gt; \/dev\/cgroup\/cpu\/user\/$\/tasks<\/b><br \/><b>echo \u00ab1\u00bb &gt; \/dev\/cgroup\/cpu\/user\/$\/notify_on_release<\/b><br \/><b>fi<\/b><\/div>\n<div style=\"background-color: #cfe2f3; font-family: Arial,Helvetica,sans-serif;\">Guardamos el archivo.<br \/>Modificamos el cgroup_clean:<\/p>\n<p>$ gedit \/usr\/local\/sbin\/cgroup_clean<br \/>Pegamos el siguiente c\u00f3digo al final del archivo de texto:<\/p>\n<p><b>#!\/bin\/sh<\/b><br \/><b>rmdir \/dev\/cgroup\/cpu\/$*<\/b><\/div>\n<div style=\"background-color: #cfe2f3; font-family: Arial,Helvetica,sans-serif;\">Guardamos y le damos permisos:<\/div>\n<div style=\"background-color: #cfe2f3; font-family: Arial,Helvetica,sans-serif;\">$ sudo chmod +x \/usr\/local\/sbin\/cgroup_clean<\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\"><\/div>\n<div style=\"font-family: Arial,Helvetica,sans-serif;\">Reiniciamos y a ver los resultados.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hace unos d\u00edas hubo una noticia bastante buena para la comunidad linux, han creado un parche que aumenta el rendimiento de linux de manera espectacular, sobre todo en multitarea.Y como digo yo, ya que para mi gusto iba bastante bien, imaginaos si aplicamos este simple parche. En un linux normal [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,4,9],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-curiosidades","category-instalar","category-manual"],"_links":{"self":[{"href":"https:\/\/gibello.es\/index.php?rest_route=\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gibello.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gibello.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gibello.es\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gibello.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":0,"href":"https:\/\/gibello.es\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/gibello.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gibello.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gibello.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}