<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flagword.net</title>
	<atom:link href="https://www.flagword.net/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.flagword.net</link>
	<description>Desultory remarks about everything that comes across.</description>
	<lastBuildDate>Sat, 17 Apr 2021 22:02:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.7</generator>
	<item>
		<title>LISA 2021 Conference</title>
		<link>https://www.flagword.net/2021/04/lisa-2021-conference/</link>
					<comments>https://www.flagword.net/2021/04/lisa-2021-conference/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sat, 17 Apr 2021 22:01:13 +0000</pubDate>
				<category><![CDATA[Conferences]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2921</guid>

					<description><![CDATA[This year LISA 2021 is going to be held as a virtual event with a very modest price. Which gives an incredible opportunity to attend it for those who could do that during the previous years due to the overall price-tag, i.e. transportation + accommodation + conference + misc. costs. By flipping through the program [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This year LISA 2021 is going to be held as a virtual event with a very modest price. Which gives an incredible opportunity to attend it for those who could do that during the previous years due to the overall price-tag, i.e. transportation + accommodation + conference + misc. costs. By flipping through <a href="https://www.usenix.org/conference/lisa21/program">the program</a> I&#8217;ve already picked my favourites:</p>
<ul>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/down">5 Years of Cgroup v2: The Future of Linux Resource Control</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/gregg-bpf">BPF internals</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/gregg-computing">Computing Performance: On the Horizon</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/jones-zachary">Performance Analysis of XDP Programs</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/cavalca">Building Community with CentOS Stream</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/farcic">How to Apply GitOps on Infrastructure (for Real)</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/walcer">Organizational Design for Technical Emergency Response in Distributed Computing Systems</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/johnson">Sustainable Software Engineering</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/elkin">Why You Should Burn Down Your Datacenter</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/biswas">Selectively Sharing Multipath Routes in BGP</a></li>
<li><a href="https://www.usenix.org/conference/lisa21/presentation/pretzer">Service Mesh Up and Running with Linkerd</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2021/04/lisa-2021-conference/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Upgraded to FreeBSD 13.0-RELEASE</title>
		<link>https://www.flagword.net/2021/04/upgraded-to-freebsd-13-0-release/</link>
					<comments>https://www.flagword.net/2021/04/upgraded-to-freebsd-13-0-release/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Fri, 16 Apr 2021 16:38:59 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2916</guid>

					<description><![CDATA[My small FreeBSD based droplet which I run in DigitalOcean is certainly unrepresentative but nevertheless I was very pleased with the smoothness of my recent upgrade to FreeBSD 13.0-RELEASE. Just a single reboot and here I am running the latest version of FreeBSD: [freebsd@flagword ~]$ freebsd-version 13.0-RELEASE]]></description>
										<content:encoded><![CDATA[<p>My small FreeBSD based droplet which I run in DigitalOcean is certainly unrepresentative but nevertheless I was very pleased with the smoothness of my recent upgrade to FreeBSD 13.0-RELEASE. Just a single reboot and here I am running the latest version of FreeBSD:<br />
<code><br />
[freebsd@flagword ~]$ freebsd-version<br />
13.0-RELEASE<br />
</code></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2021/04/upgraded-to-freebsd-13-0-release/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Canceled my booking</title>
		<link>https://www.flagword.net/2021/01/canceled-my-booking/</link>
					<comments>https://www.flagword.net/2021/01/canceled-my-booking/#comments</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sun, 10 Jan 2021 12:04:15 +0000</pubDate>
				<category><![CDATA[Life]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2911</guid>

					<description><![CDATA[As of January 1st I&#8217;m no longer employed by Booking.com and surely have some mixed feeling about that. But as the saying goes &#8211; &#8220;every cloud has a silver lining&#8221; so I&#8217;m looking in to the future with a strong optimism. New Year &#8211; New Beginnings. ;-)]]></description>
										<content:encoded><![CDATA[<p>As of January 1st I&#8217;m no longer employed by Booking.com and surely have some mixed feeling about that. But as the saying goes &#8211; &#8220;every cloud has a silver lining&#8221; so I&#8217;m looking in to the future with a strong optimism. New Year &#8211; New Beginnings. ;-)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2021/01/canceled-my-booking/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Advent of Code 2020 experience</title>
		<link>https://www.flagword.net/2020/12/advent-of-code-2020-experience/</link>
					<comments>https://www.flagword.net/2020/12/advent-of-code-2020-experience/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sat, 26 Dec 2020 09:59:41 +0000</pubDate>
				<category><![CDATA[Life]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2906</guid>

					<description><![CDATA[This year was the very first one when I was able to follow along with the daily Advent of Code 2020 small programming puzzles. &#8220;Small&#8221; is certainly a subjective word as I still have yet to finish part 2 of days 19 and 20 but overall it has been an exciting journey that gave me [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>This year was the very first one when I was able to follow along with the daily <a href="https://adventofcode.com/2020">Advent of Code 2020</a> small programming puzzles. &#8220;Small&#8221; is certainly a subjective word as I still have yet to finish part 2 of days 19 and 20 but overall it has been an exciting journey that gave me a chance to learn and to improve so I look forward to the next round in 2021.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/12/advent-of-code-2020-experience/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>my experience with kernel lockdown and eBFP</title>
		<link>https://www.flagword.net/2020/03/my-experience-with-kernel-lockdown-and-ebfp/</link>
					<comments>https://www.flagword.net/2020/03/my-experience-with-kernel-lockdown-and-ebfp/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sun, 15 Mar 2020 14:09:56 +0000</pubDate>
				<category><![CDATA[BPF]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2881</guid>

					<description><![CDATA[I&#8217;m running Ubuntu Linux on Dell Latitude 7390 and was extremely baffled when suddenly I couldn&#8217;t run any of eBPF tools. Even running as root I received this: Error creating map: '@curfreq': Operation not permitted Error creating map: '@process_mhz': Operation not permitted Error creating map: '@system_mhz': Operation not permitted Error creating printf map: Operation not [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m running Ubuntu Linux on Dell Latitude 7390 and was extremely baffled when suddenly I couldn&#8217;t run any of eBPF tools. Even running as root I received this:</p>
<pre>
Error creating map: '@curfreq': Operation not permitted
Error creating map: '@process_mhz': Operation not permitted
Error creating map: '@system_mhz': Operation not permitted
Error creating printf map: Operation not permitted
Creation of the required BPF maps has failed.
Make sure you have all the required permissions and are not confined (e.g. like
snapcraft does). `dmesg` will likely have useful output for further troubleshooting
</pre>
<p>Quick googling pointed me to the root cause &#8211; <a href="https://github.com/iovisor/bcc/issues/2565">kernel lockdown</a>, the mode which is activated by <a href="https://fedoraproject.org/wiki/Secureboot">Secureboot</a>. In the past it was still possible to disable lockdown from command line:</p>
<pre>
echo 1 > /proc/sys/kernel/sysrq
echo x > /proc/sysrq-trigger
</pre>
<p>But now this option has been <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1851380">disabled</a> and it&#8217;s <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1599197#c11">no longer possible</a> to turn lockdown off through sysrq-trigger. If you try these two commands today nothing would change except for the following message in dmesg:</p>
<pre>
[Sun Mar 15 14:07:19 2020] This sysrq operation is disabled from userspace.
</pre>
<p>As far as I know there are <a href="https://github.com/iovisor/bpftrace/blob/master/INSTALL.md#disable-lockdown">three options</a> left:<br />
1. Disable secure boot in UEFI<br />
2. Use Alt+SysRq everytime after reboot<br />
3. sudo mokutil &#8211;disable-validation </p>
<p>As a dirty hack I&#8217;ve used Alt+SysRq option so far. Btw, to initiate Alt+SysRq on Dell 7390 I had to:<br />
1. Press Fn+Esc to enable function keys<br />
2. Press Alt+PrtScr+x to disable lockdown</p>
<p>Check dmesg to confirm it worked:</p>
<pre>
[Sun Mar 15 14:11:28 2020] sysrq: Disabling Secure Boot restrictions
[Sun Mar 15 14:11:28 2020] Lifting lockdown
</pre>
<p>Finally, I&#8217;d highly recommend to read Brendan Gregg&#8217;s <a href="https://github.com/iovisor/bcc/issues/2565#issuecomment-584476552">comment</a> regarding lockdown and it&#8217;s  impact.</p>
<p>Stay cool and stay unlocked!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/03/my-experience-with-kernel-lockdown-and-ebfp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Christmas gifts 2020 already in house</title>
		<link>https://www.flagword.net/2020/03/christmas-gifts-2020-already-in-house/</link>
					<comments>https://www.flagword.net/2020/03/christmas-gifts-2020-already-in-house/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sun, 01 Mar 2020 13:37:12 +0000</pubDate>
				<category><![CDATA[Life]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2859</guid>

					<description><![CDATA[It all started with a long awaited book by Brendan Gregg &#8220;BPF Performance Tools&#8221; that I decided to purchase directly from www.informit.com since amazon.de didn&#8217;t have it in store and it wasn&#8217;t clear at all when they would have one. Then another day I found this in my mail box: With a couple of cute [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>It all started with a long awaited book by Brendan Gregg &#8220;BPF Performance Tools&#8221; that I decided to purchase directly from <a href="https://www.informit.com">www.informit.com</a> since <a href="http://amazon.de/">amazon.de</a> didn&#8217;t have it in store and it wasn&#8217;t clear at all when they would have one.</p>
<p><a href="https://www.flagword.net/wp-content/uploads/2020/03/BPF_Book.jpeg"><img fetchpriority="high" decoding="async" src="https://www.flagword.net/wp-content/uploads/2020/03/BPF_Book.jpeg" alt="" width="225" height="300" class="alignnone size-medium wp-image-2860" /></a></p>
<p>Then another day I found this in my mail box:</p>
<p><a href="https://www.flagword.net/wp-content/uploads/2020/03/oxide_envelope.png"><img decoding="async" src="https://www.flagword.net/wp-content/uploads/2020/03/oxide_envelope.png" alt="" width="300" height="225" class="alignnone size-medium wp-image-2861" /></a></p>
<p>With a couple of cute stickers generously sent by <a href="https://oxide.computer">oxide.computer</a> and kindly packed by<br />
Bryan Cantrill&#8217;s <a href="https://twitter.com/bcantrill/status/1233436243725172736">family</a></p>
<p><a href="https://www.flagword.net/wp-content/uploads/2020/03/oxide_stickers.jpeg"><img decoding="async" src="https://www.flagword.net/wp-content/uploads/2020/03/oxide_stickers.jpeg" alt="" width="225" height="300" class="alignnone size-medium wp-image-2862" /></a></p>
<p>Time for learning and sticking out ;-)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/03/christmas-gifts-2020-already-in-house/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>My trivial Linux kernel module in Rust</title>
		<link>https://www.flagword.net/2020/02/my-trivial-linux-kernel-module-in-rust/</link>
					<comments>https://www.flagword.net/2020/02/my-trivial-linux-kernel-module-in-rust/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Wed, 12 Feb 2020 10:56:28 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2847</guid>

					<description><![CDATA[Couple of weeks ago had a chance to participate in a small gig at work that offered a chance to try Rust as a language for wringing Linux kernel module. It was a steep learning experience which made it super fun. Huge shout out to folks behind linux-kernel-module-rust framework without whom nothing would be possible. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Couple of weeks ago had a chance to participate in a small gig at work that offered a chance to try <a href="https://www.rust-lang.org/">Rust</a> as a language for wringing Linux kernel module. It was a steep learning experience which made it super fun. Huge shout out to folks behind <a href="https://github.com/fishinabarrel/linux-kernel-module-rust">linux-kernel-module-rust framework</a> without whom nothing would be possible. </p>
<p>Below is the result:</p>
<p><script src="https://gist.github.com/tetronoz/9d8846016507865dae7802ce15203fbb.js"></script></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/02/my-trivial-linux-kernel-module-in-rust/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Time to learn something OSX new</title>
		<link>https://www.flagword.net/2020/02/time-to-learn-something-osx-new/</link>
					<comments>https://www.flagword.net/2020/02/time-to-learn-something-osx-new/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sun, 02 Feb 2020 12:39:44 +0000</pubDate>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[OSX]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2839</guid>

					<description><![CDATA[Received Volume I and II back in December 2019 and before that had been craving to own them for quite a while. The catalyst that finally motivated me to buy one was the final call or, more correctly, a tweet. I&#8217;ve quickly gleaned through the books and the depth of the material was impressive and [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Received Volume I and II back in December 2019 and before that had been craving to own them for quite a while. The catalyst that finally motivated me to buy one was the final call or, more correctly, a <a href="https://twitter.com/Morpheus______/status/1182327255709753345">tweet</a>. I&#8217;ve quickly gleaned through the books and the depth of the material was impressive and intimidating at the same time. But for lifelong leaner like me this is the reason I bought them in the first place.<br />
<a href="https://www.flagword.net/wp-content/uploads/2020/02/IMG_2058.jpeg"><img loading="lazy" decoding="async" src="https://www.flagword.net/wp-content/uploads/2020/02/IMG_2058-300x225.jpeg" alt="" width="300" height="225" class="alignnone size-medium wp-image-2840" srcset="https://www.flagword.net/wp-content/uploads/2020/02/IMG_2058-300x225.jpeg 300w, https://www.flagword.net/wp-content/uploads/2020/02/IMG_2058-1024x768.jpeg 1024w, https://www.flagword.net/wp-content/uploads/2020/02/IMG_2058-768x576.jpeg 768w, https://www.flagword.net/wp-content/uploads/2020/02/IMG_2058.jpeg 1280w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/02/time-to-learn-something-osx-new/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Finished &#8220;Permanent Record&#8221;</title>
		<link>https://www.flagword.net/2020/02/finished-permanent-record/</link>
					<comments>https://www.flagword.net/2020/02/finished-permanent-record/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Sat, 01 Feb 2020 17:25:07 +0000</pubDate>
				<category><![CDATA[Life]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2836</guid>

					<description><![CDATA[Just turned the final page of Permanent Record and, not taking into account that I haven&#8217;t read a real physical book for quite a while, must say this one was thrillingly riveting. The world would&#8217;ve been undoubtedly a better place had we had more Snowdens among us.]]></description>
										<content:encoded><![CDATA[<p>Just turned the final page of <a href="https://www.amazon.com/dp/1250237238/">Permanent Record</a> and, not taking into account that I haven&#8217;t read a real physical book for quite a while, must say this one was thrillingly riveting. The world would&#8217;ve been undoubtedly a better place had we had more Snowdens among us.  </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/02/finished-permanent-record/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>python-bpfcc on Ubuntu 19.10 misses PerfEventArray due to an outdated bpfcc-tools</title>
		<link>https://www.flagword.net/2020/01/python-bpfcc-on-ubuntu-19-10-misses-perfeventarray-due-to-an-outdated-bpfcc-tools/</link>
					<comments>https://www.flagword.net/2020/01/python-bpfcc-on-ubuntu-19-10-misses-perfeventarray-due-to-an-outdated-bpfcc-tools/#respond</comments>
		
		<dc:creator><![CDATA[sergeyt]]></dc:creator>
		<pubDate>Mon, 13 Jan 2020 16:35:23 +0000</pubDate>
				<category><![CDATA[BPF]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://www.flagword.net/?p=2828</guid>

					<description><![CDATA[If you, like me, follow bcc Python Developer Tutorial, to sharpen bpf skills you might hit the same snag as I did when I was trying to implement a solution for lesson 8: Traceback (most recent call last): File "_ctypes/callbacks.c", line 315, in 'calling callback function' File "/usr/lib/python2.7/dist-packages/bcc/table.py", line 572, in raw_cb_ callback(cpu, data, size) [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you, like me, follow <a href="https://github.com/iovisor/bcc/blob/master/docs/tutorial_bcc_python_developer.md">bcc Python Developer Tutorial</a>, to sharpen bpf skills you might hit the same snag as I did when I was trying to implement a solution for <a href="https://github.com/iovisor/bcc/blob/master/docs/tutorial_bcc_python_developer.md#lesson-8-sync_perf_outputpy">lesson 8</a>:</p>
<pre>
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 315, in 'calling callback function'
  File "/usr/lib/python2.7/dist-packages/bcc/table.py", line 572, in raw_cb_
    callback(cpu, data, size)
  File "./sync_perf_output.py.py", line 69, in print_event
    event = b["events"].event(data)
AttributeError: 'PerfEventArray' object has no attribute 'event'
</pre>
<p><a href="https://github.com/iovisor/bcc/blob/master/docs/tutorial_bcc_python_developer.md#lesson-7-hello_perf_outputpy">Lesson 7</a> doesn&#8217;t work and fails with the same error.<br />
Originally, one had to use ctypes to define the event data structure in Python but <a href="https://github.com/iovisor/bcc/pull/2198">this PR</a> changed that. So now perf event data structure in Python is auto-generated. The code for leasson 8 has been updated accordingly <a href="https://github.com/iovisor/bcc/pull/2226/files">as well</a> </p>
<p>However bpf which is shipped with Ubuntu 19.10 is outdated, version 0.8.0-4 versus 0.12.0 as of this writing, and the only way around is to keep using ctypes, or <a href="https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---binary">build the tool chain</a> from source due to a <a href="https://bugs.launchpad.net/ubuntu/+source/bpfcc/+bug/1848137">known bug</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.flagword.net/2020/01/python-bpfcc-on-ubuntu-19-10-misses-perfeventarray-due-to-an-outdated-bpfcc-tools/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
