From owner-soc-status@FreeBSD.ORG Mon Jul 12 19:23:46 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 BDC1C106566C; Mon, 12 Jul 2010 19:23:46 +0000 (UTC) (envelope-from eng.mufic@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id ECB6B8FC24; Mon, 12 Jul 2010 19:23:45 +0000 (UTC) Received: by wwb34 with SMTP id 34so97735wwb.1 for ; Mon, 12 Jul 2010 12:23:44 -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=b/3p8UDOdrJ9kIDZl12fVGQyg12mTrd6yXCSFpKjcRw=; b=heUR07X03My3Z+r7fQJ3dSoFDfm6D6cZ0R6ZxnptEBeS/inevI4mdktyOM13qua01F Me2XKlFL5vuV4XRZPltfjCRQ5jvSTqOXD7tZUq2y02WiHz0VsU0ZMY70SXGysLaWzBzI 0nau6VpdDcNapqDbvf0i7eY1QLM9H06BIlJdU= 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=sq55bej1/ijmdbzLjdiA7ZiJitSmn0kDh0kpgkUqgy+HHq70m5ii4yg3WtSRLdwC4t YIhftSzi3Xc5dpdExCiqxWWVTxvafMNHI4CvjFc0h7rWk2jcn0tgWPi5l1JVAmUrqWFh QBDWQDn2mIlOkhZXh2lF8NIPlPXfXRngXSw1o= MIME-Version: 1.0 Received: by 10.227.157.84 with SMTP id a20mr5256857wbx.32.1278962624656; Mon, 12 Jul 2010 12:23:44 -0700 (PDT) Sender: eng.mufic@gmail.com Received: by 10.216.36.8 with HTTP; Mon, 12 Jul 2010 12:23:44 -0700 (PDT) In-Reply-To: References: <20100712161259.GC8835@lor.one-eyed-alien.net> Date: Mon, 12 Jul 2010 22:23:44 +0300 X-Google-Sender-Auth: -QicJqmD5yT6vlmxhMXjAoAc-Ok Message-ID: From: Mohammed Farrag To: Brooks Davis , soc-status@freebsd.org, monthly@freebsd.org X-Mailman-Approved-At: Mon, 12 Jul 2010 20:15:54 +0000 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 19:23:46 -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. Important Links : http://www.mediafire.com/?lzihfmrydyv All My work in GSoC http://www.mediafire.com/?clwdgyjnnyf Helper Document http://www.gsp.com/cgi-bin/man.cgi?section=8&topic=picobsd Helper Document http://serverfault.com/questions/64356/freebsd-performance-tuning-sysctls-loader-conf-kernel Helper Document http://serverfault.com/questions/64356/freebsd-performance-tuning-sysctls-loader-conf-kernel Helper Document Next Tasks : 1.Perform only one executable for all bins (derived from picobsd) using crunchgen() 2.Parsing The output of the dmesg to determine which device found and which is not found. 3.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.