
    

    <?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://ocw.cs.pub.ro/courses/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://ocw.cs.pub.ro/courses/feed.php">
        <title>CS Open CourseWare ep:labs:04:contents:tasks</title>
        <description></description>
        <link>http://ocw.cs.pub.ro/courses/</link>
        <image rdf:resource="http://ocw.cs.pub.ro/courses/lib/tpl/arctic/images/favicon.ico" />
       <dc:date>2026-04-28T14:56:58+03:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex1?rev=1774347838&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex2?rev=1739309790&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex3?rev=1775127399&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex4?rev=1774351525&amp;do=diff"/>
                <rdf:li rdf:resource="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex5?rev=1772528126&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://ocw.cs.pub.ro/courses/lib/tpl/arctic/images/favicon.ico">
        <title>CS Open CourseWare</title>
        <link>http://ocw.cs.pub.ro/courses/</link>
        <url>http://ocw.cs.pub.ro/courses/lib/tpl/arctic/images/favicon.ico</url>
    </image>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex1?rev=1774347838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-24T12:23:58+03:00</dc:date>
        <title>01. [10p] Valgrind</title>
        <link>http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex1?rev=1774347838&amp;do=diff</link>
        <description>01. [10p] Valgrind

Dynamic analysis tools can observe a running process and report memory-related
issues that static analysis would miss entirely. In this exercise you will use
Valgrind to detect memory leaks in a small C program -- and get a first taste
of the dynamic instrumentation concept that will be developed further in Task 04
with Intel Pin.</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex2?rev=1739309790&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-11T23:36:30+03:00</dc:date>
        <title>02. [20p] Swap space</title>
        <link>http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex2?rev=1739309790&amp;do=diff</link>
        <description>02. [20p] Swap space





[10p] Task A - Swap File

First, let us check what swap devices we have enabled. Check the NAME and SIZE columns of the following command:


$ swapon --show


No output means that there are no swap devices available.

If you ever installed a Linux distro, you may remember creating a separate swap partition. This, however, is only one method of creating swap space. The other is by adding a swap file. Run the following commands:</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex3?rev=1775127399&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-04-02T13:56:39+03:00</dc:date>
        <title>03. [30p] Kernel Samepage Merging</title>
        <link>http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex3?rev=1775127399&amp;do=diff</link>
        <description>03. [30p] Kernel Samepage Merging

KSM is a page de-duplication strategy introduced in kernel version 2.6.32. In case you are wondering, it's not the same thing as the file page cache. KSM was originally developed in tandem with KVM in order to detect data pages with exactly the same content and make their page table entries point to the same physical address (marked Copy-On-Write.) The end goal was to allow more VMs to run on the same host. Since each page must be scanned for identical content,…</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex4?rev=1774351525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-24T13:25:25+03:00</dc:date>
        <title>04. [40p] Intel PIN</title>
        <link>http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex4?rev=1774351525&amp;do=diff</link>
        <description>04. [40p] Intel PIN

Broadly speaking, binary analysis is of two types:

	*  Static analysis - used in an offline environment to understand how a program works without actually running it.
	*  Dynamic analysis - applied to a running process in order to highlight interesting behavior, bugs or performance issues.</description>
    </item>
    <item rdf:about="http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex5?rev=1772528126&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-03T10:55:26+03:00</dc:date>
        <title>05. [10p] Feedback</title>
        <link>http://ocw.cs.pub.ro/courses/ep/labs/04/contents/tasks/ex5?rev=1772528126&amp;do=diff</link>
        <description>05. [10p] Feedback

Please take a minute to fill in the  feedback form for this lab.</description>
    </item>
</rdf:RDF>
