From owner-soc-status@FreeBSD.ORG Mon Jul 12 20:38:02 2010 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 795D3106566C; Mon, 12 Jul 2010 20:38:02 +0000 (UTC) (envelope-from eng.mufic@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A51F48FC20; Mon, 12 Jul 2010 20:38:01 +0000 (UTC) Received: by wyb34 with SMTP id 34so4395844wyb.13 for ; Mon, 12 Jul 2010 13:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=jPe4+o3Y/CIrJtk4/iHPhi/miTQEwRVwolYZuCJ+NHY=; b=FNcnlHieSpiMLTFLq2DhTJfARD2w7SZ1qQnmp2AWgRl4c0a5SC/6aVqUJeDjHRsC6p 4TU1kx8f1rdBBYuDuMsU5V3xaq9+p43/wLI7gX9sQh5oLPaKWA5fNupRJuU7GR9+55+q r9CgV+0JbPea24LBxA0T7VcmElVxWHlvK7Ca8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=hvpfGuOnGus6+PybbSluk7eNmhdrv6dvrFiAfhVh4fWKcWXdDyNEcKmd+/rILN/WtE n3lF7w7ekHbd06IjWRR5DfLUxcQSD53Q8cM/Ce31BaQeOCHws/eYr2j4ZkjI16Sd2pGd OFlmCVQ1Vqq2gGxwtXgTgpE2rBTNvlyx/RruE= MIME-Version: 1.0 Received: by 10.227.127.80 with SMTP id f16mr13002567wbs.133.1278967072251; Mon, 12 Jul 2010 13:37:52 -0700 (PDT) Sender: eng.mufic@gmail.com Received: by 10.216.36.8 with HTTP; Mon, 12 Jul 2010 13:37:52 -0700 (PDT) In-Reply-To: References: <20100712161259.GC8835@lor.one-eyed-alien.net> Date: Mon, 12 Jul 2010 23:37:52 +0300 X-Google-Sender-Auth: CF2gbxYwcoiMUUNmeeDJJlH5va8 Message-ID: From: Mohammed Farrag To: Brooks Davis , soc-status@freebsd.org, monthly@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Mohammed Farrag GSoC Status Report X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2010 20:38:02 -0000 Hi, My previous reply was the XML file for the status. I will type the explanation in plain text here : description.pdf decribes what I intended to do. That was the first Milestone. I sent that document to FreeBSD mailing list & hackers. Actually, I faced some problems at the implementation level So,I added additional features and suggested clearer approach. Completed Tasks : 1.Using sysctls in the loader.conf file to avoid some problems with read only OIDs. I used some document about kernel size reduction in NetBSD. 2. Disabling debugging options in the kernel Using -O3 options which provide the lowest code size & Using -O2 only in some situations because -O3 sometimes produce broken kernels That is concerened with cflag and coptflag 3.disable IP6,FFS,GEOM_PART_TABLE,GEOM_ LABEL,KTrace,SYSVSHM,SYSVMSG,SYSVSEM,MD,MD_ROOT,UFS_DIRHASA, UFS_GJOURNAL in the kernel configuration file ==> sys/boot/i386/libi386/Makefile 4.Using only static executables and remove the dynamic one (derived from minibsd) ==> /etc/make.conf ==> Type NOSHARED=no 5. Creation of pl file which will read files we want to keep in the directory (e.g /bin) (It can be used for other directories also) . (These modules are compressed for saving space using gzip). At loading process, program will read the specified files needed, uncompress these files, load it and deal with it. At the Shutdown process, it compresses those files again. Making them compressed saves much space (about the half of the space) and we don't need the same tools in directory (i.e. /bin) each boot time. you can control the content of the directory by changing the contents of names.files How About abnormal shutdown ?! Checking all the files and search for uncompressed ones, compress them and complete the work normally. On the other hand, Compressing the files at shutdown process by executing Termination.pl should be done. Program eliminate the source files after Compression/Uncompression process. That mean /bin will include either compressed or uncompressed version of specific file. Snapshots are provided to determine how do you can use these files.