From owner-soc-status@FreeBSD.ORG Mon Jul 12 20:44:09 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 31EEC106566C; Mon, 12 Jul 2010 20:44:09 +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 668658FC20; Mon, 12 Jul 2010 20:44:08 +0000 (UTC) Received: by wyb34 with SMTP id 34so4401066wyb.13 for ; Mon, 12 Jul 2010 13:44:07 -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:cc:content-type; bh=GC5u4n6cfYJUvv3Q4ZMUyprQ64ESTaIvwomXGXRvWjw=; b=kgjjv31f6GdSawlt84U6rtOheujYS69/hTc4Yi2XGvn9boueln/5u5J0QF95hH5HfQ I0ow9J9TB13iv/8B83ZPdwHkotE9cEpZ4kb2khrTSiU5R7qZ++TZuZzvSBOQVUTVnaqs U7n9uKpd9fZ831TpIlhyeVDi8fEoeXekdzXQY= 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:cc:content-type; b=o5cJrVsh3in80nk2d0KFqp9xKzBwYzg0GcLN+5Aa1pj4H28kbMMyJJeEc1l+5KFjmL Nd72ksG8TXg9rsuJ9OmanRL0UX3pUkzdsOow7AUeFtBiQAqxKo7uuv+10ZdeUglv3Rcf 3c8WyDmv4L+CllaKjCH4LrwUb/+i7QuTRnkvQ= MIME-Version: 1.0 Received: by 10.227.158.15 with SMTP id d15mr13228786wbx.24.1278967446537; Mon, 12 Jul 2010 13:44:06 -0700 (PDT) Sender: eng.mufic@gmail.com Received: by 10.216.36.8 with HTTP; Mon, 12 Jul 2010 13:44:06 -0700 (PDT) In-Reply-To: References: <20100712161259.GC8835@lor.one-eyed-alien.net> Date: Mon, 12 Jul 2010 23:44:06 +0300 X-Google-Sender-Auth: SJQTVcld_5KqdIL-YOlmzDz19ks 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: bsdimp@gmail.com 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:44:09 -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 dynamic executables and remove the static ones (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. Next Tasks : 1.Figuring out the freebsd performance before and after applying that work. 2.Perform only one executable for all bins (derived from picobsd) using crunchgen() 3.Parsing The output of the dmesg to determine which device found and which is not found. 4.The completeness of the work will be by creating the loader file which will load its modules based on the dmesg and user requirements which will be indicated through somefile.