Changes in / [f621e43f:976bc68]


Ignore:
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mubeen_zulfiqar_MMath/Makefile

    rf621e43f r976bc68  
    1 DOC = uw-ethesis.pdf
    2 BASE = ${DOC:%.pdf=%} # remove suffix
    3 # directory for latex clutter files
    4 BUILD = build
    5 TEXSRC = $(wildcard *.tex)
    6 FIGSRC = $(wildcard *.fig)
    7 BIBSRC = $(wildcard *.bib)
    8 TEXLIB = .:../../LaTeXmacros:${BUILD}: # common latex macros
    9 BIBLIB = .:../../bibliography # common citation repository
     1### Makefile from Andrew Beach's Masters Thesis
    102
    11 MAKEFLAGS = --no-print-directory # --silent
    12 VPATH = ${BUILD}
     3DOC=uw-ethesis.pdf
     4BUILD=out
     5TEXSRC=$(wildcard *.tex)
     6BIBSRC=$(wildcard *.bib)
     7STYSRC=$(wildcard *.sty)
     8CLSSRC=$(wildcard *.cls)
     9TEXLIB= .:../../LaTeXmacros:${BUILD}:
     10BIBLIB= .:../../bibliography
     11
     12# Since tex programs like to add their own file extensions:
     13BASE= ${DOC:%.pdf=%}
    1314
    1415### Special Rules:
    1516
    16 .PHONY: all clean
     17.PHONY: all clean deepclean
    1718
    1819### Commands:
    19 LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD}
    20 BIBTEX = BIBINPUTS=${BIBLIB} bibtex
     20LATEX=TEXINPUTS=${TEXLIB} pdflatex -halt-on-error -output-directory=${BUILD}
     21BIBTEX=BIBINPUTS=${BIBLIB} bibtex
    2122#GLOSSARY=INDEXSTYLE=${BUILD} makeglossaries-lite
    2223
    23 ### Rules and Recipes:
     24### Rules and Recipies:
    2425
    2526all: ${DOC}
    2627
    27 ${BUILD}/%.dvi: ${TEXSRC} ${FIGSRC:.fig=.tex} ${BIBSRC} Makefile | ${BUILD}
     28${BUILD}/${DOC}: ${TEXSRC} ${BIBSRC} ${STYSRC} ${CLSSRC} Makefile | ${BUILD}
    2829        ${LATEX} ${BASE}
    2930        ${BIBTEX} ${BUILD}/${BASE}
     
    3233#       ${LATEX} ${BASE}
    3334
     35${DOC}: ${BUILD}/${DOC}
     36        cp $< $@
     37
    3438${BUILD}:
    3539        mkdir $@
    3640
    37 %.pdf : ${BUILD}/%.ps | ${BUILD}
    38         ps2pdf $<
     41clean:
     42        -@rm -rv ${BUILD}
    3943
    40 %.ps : %.dvi | ${BUILD}
    41         dvips $< -o $@
    42 
    43 %.tex : %.fig | ${BUILD}
    44         fig2dev -L eepic $< > ${BUILD}/$@
    45 
    46 %.ps : %.fig | ${BUILD}
    47         fig2dev -L ps $< > ${BUILD}/$@
    48 
    49 %.pstex : %.fig | ${BUILD}
    50         fig2dev -L pstex $< > ${BUILD}/$@
    51         fig2dev -L pstex_t -p ${BUILD}/$@ $< > ${BUILD}/$@_t
    52 
    53 clean:
    54         @rm -frv ${DOC} ${BUILD} *.fig.bak
     44deepclean: clean
     45        -@rm -v ${DOC}
  • doc/theses/mubeen_zulfiqar_MMath/allocator.tex

    rf621e43f r976bc68  
    1 
    21\chapter{Allocator}
    3 
    4 \newpage
    5 \paragraph{Design 1: Decentralized}
    6 Fixed number of heaps: shard the heap into N heaps each with a bump-area allocated from the sbrk area.
    7 Kernel threads (KT) are assigned to the N heaps.
    8 When KTs $\le$ N, the heaps are uncontented.
    9 When KTs $>$ N, the heaps are contented.
    10 By adjusting N, this approach reduces storage at the cost of speed due to contention.
    11 In all cases, a thread acquires/releases a lock, contented or uncontented.
    12 \begin{cquote}
    13 \centering
    14 \input{AllocDS1}
    15 \end{cquote}
    16 Problems: need to know when a KT is created and destroyed to know when to create/delete the KT's heap.
    17 On KT deletion, its heap freed-storage needs to be distributed somewhere.
    18 
    19 \paragraph{Design 2: Centralized}
    20 
    21 One heap, but lower bucket sizes are N-shared across KTs.
    22 This design leverages the fact that 95\% of allocation requests are less than 512 bytes and there are only 3--5 different request sizes.
    23 When KTs $\le$ N, the important bucket sizes are uncontented.
    24 When KTs $>$ N, the free buckets are contented.
    25 Therefore, threads are only contending for a small number of buckets, which are distributed among them to reduce contention.
    26 \begin{cquote}
    27 \centering
    28 \input{AllocDS2}
    29 \end{cquote}
    30 Problems: need to know when a kernel thread (KT) is created and destroyed to know when to assign a shared bucket-number.
    31 When no thread is assigned a bucket number, its free storage is unavailable.
    32 It is possible to use sharing and stealing techniques to share/find unused storage, when a free list is unused or empty.
  • doc/theses/mubeen_zulfiqar_MMath/uw-ethesis.tex

    rf621e43f r976bc68  
    8181\usepackage{amsmath,amssymb,amstext} % Lots of math symbols and environments
    8282\usepackage{xcolor}
    83 \usepackage{epic,eepic}
    84 \usepackage{graphicx}
     83\usepackage[pdftex]{graphicx}
    8584\usepackage{comment} % Removes large sections of the document.
    8685\usepackage{todonotes} % Adds todos (Must be included after comment.)
     
    9089% Use the "hyperref" package
    9190% N.B. HYPERREF MUST BE THE LAST PACKAGE LOADED; ADD ADDITIONAL PKGS ABOVE
    92 \usepackage[pagebackref=true]{hyperref} % with basic options
     91\usepackage[pdftex,pagebackref=true]{hyperref} % with basic options
    9392%\usepackage[pdftex,pagebackref=true]{hyperref}
    9493% N.B. pagebackref=true provides links back from the References to the body text. This can cause trouble for printing.
  • tests/include/includes.cfa

    rf621e43f r976bc68  
    4040#include <errno.h>
    4141#include <error.h>
    42 //#include <eti.h>                                                                              // may not be installed, comes with ncurses
     42//#include <eti.h>                                                                              // may not be installed
    4343#include <execinfo.h>
    4444#include <expat.h>
     
    4949#include <fmtmsg.h>
    5050#include <fnmatch.h>
    51 //#include <form.h>                                                                             // may not be installed, comes with ncurses
     51#include <form.h>
    5252#include <fstab.h>
    5353#include <fts.h>
     
    7777#include <mcheck.h>
    7878#include <memory.h>
    79 //#include <menu.h>                                                                             // may not be installed, comes with ncurses
     79#include <menu.h>
    8080#include <mntent.h>
    8181#include <monetary.h>
    8282#include <mqueue.h>
    83 //#include <ncurses_dll.h>                                                                      // may not be installed, comes with ncurses
     83#include <ncurses_dll.h>
    8484#include <netdb.h>
    8585#include <nl_types.h>
    8686#include <nss.h>
    8787#include <obstack.h>
    88 //#include <panel.h>                                                                            // may not be installed, comes with ncurses
     88#include <panel.h>
    8989#include <paths.h>
    9090#include <poll.h>
     
    117117#include <syslog.h>
    118118#include <tar.h>
    119 //#include <term.h>                                                                             // may not be installed, comes with ncurses
    120 //#include <termcap.h>                                                                          // may not be installed, comes with ncurses
     119#include <term.h>
     120#include <termcap.h>
    121121#include <termio.h>
    122122#include <termios.h>
     
    130130#include <ucontext.h>
    131131#include <ulimit.h>
    132 //#include <unctrl.h>                                                                           // may not be installed, comes with ncurses
     132#include <unctrl.h>
    133133#include <unistd.h>
    134134#include <utime.h>
Note: See TracChangeset for help on using the changeset viewer.