<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Kernel on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/kernel/</link><description>Recent content in Kernel on Karpoke - Just Another Blog</description><generator>Hugo -- 0.159.0</generator><language>es</language><lastBuildDate>Tue, 01 Nov 2016 15:09:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/kernel/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux containers in 500 lines of code</title><link>http://karpoke.ignaciocano.com/2016/11/01/linux-containers-in-500-lines-of-code/</link><pubDate>Tue, 01 Nov 2016 15:09:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2016/11/01/linux-containers-in-500-lines-of-code/</guid><description>&lt;p&gt;Relatd:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I’ve used Linux containers directly and indirectly for years, but I wanted
to become more familiar with them. So I wrote some code. This used to be 500
lines of code, I swear, but I’ve revised it some since publishing; I’ve
ended up with about 70 lines more.&lt;/p&gt;
&lt;p&gt;I wanted specifically to find a minimal set of restrictions to run untrusted
code. This isn’t how you should approach containers on anything with any
exposure: you should restrict everything you can. But I think it’s important
to know which permissions are categorically unsafe!&lt;/p&gt;</description></item><item><title>Interactive map of Linux kernel</title><link>http://karpoke.ignaciocano.com/2012/05/27/interactive-map-of-linux-kernel/</link><pubDate>Sun, 27 May 2012 13:10:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2012/05/27/interactive-map-of-linux-kernel/</guid><description>&lt;blockquote&gt;
&lt;p&gt;The interactive Linux kernel map helps you traverse complex interconnections
between subsystems of the kernel while you explore its source code. A Linux
hacker, trying to track down a bug or just understand how some subsystem
works, can get exhausted just trying to figure out what invokes what ” so the
kernel map comes to the rescue!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» &lt;a href="http://www.makelinux.com/kernel_map/intro"&gt;makelinux.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Instalación de un nuevo kernel PPA en Ubuntu</title><link>http://karpoke.ignaciocano.com/2012/01/26/instalacion-de-un-nuevo-kernel-ppa-en-ubuntu/</link><pubDate>Thu, 26 Jan 2012 12:19:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2012/01/26/instalacion-de-un-nuevo-kernel-ppa-en-ubuntu/</guid><description>&lt;p&gt;Esta receta muestra como &lt;a href="http://www.howopensource.com/2011/08/how-to-install-linux-kernel-3-1-rc2-oneiric-in-ubuntu-11-04-10-10-and-10-04/"&gt;instalar un nuevo kernel precompilado&lt;/a&gt; en
Ubuntu.&lt;/p&gt;
&lt;p&gt;Antes de continuar, cabe avisar de que si tenemos módulos del kernel que
no sean libres, por ejemplo, módulos de ATI, &lt;a href="http://www.ultimateeditionoz.com/forum/viewtopic.php?t=2504"&gt;Broadcom&lt;/a&gt; o
&lt;a href="http://unix.stackexchange.com/questions/10962/i-am-failing-to-build-virtualbox-driver-for-linux-2-6-38"&gt;Virtualbox&lt;/a&gt;, es posible que nos surja algún problema que deberemos
resolver en cada caso. En algunos casos, volver a reinstalar las
aplicaciones o los controladores puede funcionar.&lt;/p&gt;
&lt;p&gt;Instalamos &lt;code&gt;module-init-tools&lt;/code&gt;, una herramienta para gestionar módulos
del kernel que se encuentra en los repositorios, que puede evitar que
nos aparezcan algunos errores y avisos.&lt;/p&gt;</description></item><item><title>El consumo de la batería</title><link>http://karpoke.ignaciocano.com/2011/10/01/el-consumo-de-la-bateria/</link><pubDate>Sat, 01 Oct 2011 19:55:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/10/01/el-consumo-de-la-bateria/</guid><description>&lt;p&gt;Con las últimas versiones del &lt;em&gt;kernel&lt;/em&gt; el &lt;a href="http://www.phoronix.com/scan.php?page=article&amp;amp;item=linux_mobile_uffda#=1"&gt;consumo de la batería se
había disparado&lt;/a&gt;, reduciendo el tiempo de vida útil de la batería. Las
baterías son un bien preciado, por lo que existen multitud de trucos
para intentar &lt;a href="http://karpoke.ignaciocano.com/2010/09/26/la-bateria-del-portatil/"&gt;alargar su tiempo de vida&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Aunque no se conoce con certeza si &lt;a href="http://elsoftwarelibre.wordpress.com/2011/09/29/el-elevado-consumo-de-energia-de-las-ultimas-versiones-del-kernel-de-linux-%C2%BFverdad-o-mito/"&gt;este elevado consumo podría deberse
a un fallo&lt;/a&gt;, en los casos en que la BIOS indicaba que ASPM no estaba
soportado estando éste habilitado, o a la configuración en algunos
&lt;a href="http://www.fewt.com/2011/09/about-kernel-30-power-regression-myth.html"&gt;parámetros del &lt;em&gt;kernel&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Salvapantallas con el código fuente del kernel</title><link>http://karpoke.ignaciocano.com/2011/07/28/salvapantallas-con-el-codigo-fuente-del-kernel/</link><pubDate>Thu, 28 Jul 2011 12:42:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/07/28/salvapantallas-con-el-codigo-fuente-del-kernel/</guid><description>&lt;p&gt;Si queremos que cada vez que aparezca el salvapantallas, lo haga
mostrando algunas líneas del código fuente del &lt;em&gt;kernel&lt;/em&gt; por pantalla,
sólo necesitamos configurar el salvapantallas &lt;code&gt;phosphor&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Phosphor" loading="lazy" src="http://karpoke.ignaciocano.com/images/phosphor-300x178.png"&gt;&lt;/p&gt;
&lt;p&gt;Lo primero es instalar el código fuente del &lt;code&gt;kernel&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ sudo apt-get source linux-source-$(uname -r)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;El comando &lt;code&gt;uname&lt;/code&gt; muestra información acerca del sistema operativo
instalado, la versión del kernel, la familia del procesador, el nombre
de la máquina o la plataforma. En mi caso, uso un kernel PAE, porque
tengo una Ubuntu de 32 bits y 4 GB de RAM, por lo que el comando
anterior no me ha ido del todo bien:&lt;/p&gt;</description></item><item><title>Mejora del rendimiento interactivo agrupando tareas por terminal</title><link>http://karpoke.ignaciocano.com/2010/12/16/mejora-del-rendimiento-interactivo-agrupando-tareas-por-terminal/</link><pubDate>Thu, 16 Dec 2010 02:03:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2010/12/16/mejora-del-rendimiento-interactivo-agrupando-tareas-por-terminal/</guid><description>&lt;p&gt;El &lt;a href="http://lkml.org/lkml/2010/10/19/123"&gt;parche de 200 líneas&lt;/a&gt; para el kernel, o su versión en &lt;a href="http://usemoslinux.blogspot.com/2010/11/foto-resumen-tras-haber-realizado-el.html"&gt;espacio de
usuario&lt;/a&gt;, &lt;a href="http://ubuntulife.wordpress.com/2010/11/20/el-parche-milagro-de-linux-de-200-lineas-implementado-en-4-lineas-de-bash/#comment-43848"&gt;mejora el rendimiento interactivo&lt;/a&gt; agrupando los procesos
por &lt;code&gt;tty&lt;/code&gt;. La mejora sólo será notable si tenemos varios procesos
asociados a un terminal que tengan un consumo importante de CPU, ya que
la potencia de ésta no se repartirá entre el número de procesos sino
entre el número de grupos de procesos. De ahí que sea una mejora
&lt;em&gt;interactiva&lt;/em&gt;, el ordenador no irá más rápido, pero sí tendremos la
sensación de que responde más rápido. Este parche requiere un kernel
superior al 2.6.36 con soporte a grupos de tareas.&lt;/p&gt;</description></item></channel></rss>