Re: Any way to do time keeping during kernel uncompression[ARM architecture]

2013-02-06 Thread sandeep kumar
Dear All FYI: I got the below data in my board... For Zimage: Copy from eMMC to RAM(bootloader) other stuff in bootloader -- 200msec Kernel relocation --- 1msec Kernel uncompression -- 700msec Total time taken --- 900msec approx For Image: Copy from eMMC to RAM(bootloader) other stuff in

Re: hard disk dirver

2013-02-06 Thread horseriver
On Wed, Feb 06, 2013 at 02:35:47AM -0500, valdis.kletni...@vt.edu wrote: On Wed, 06 Feb 2013 05:37:41 +0800, horseriver said: After grub load kernel and initrd , it get around root filesystem mounting , but failed with no finding root device ,from which kernel and initrd have been

Re: hard disk dirver

2013-02-06 Thread horseriver
hi:) I have a newbie question about hard ware. At booting stage,kernel need to detect the hard device before mount it, does this work need pci's surport? At loading stage ,boot loader need to move binaries from hard disk partition to ram,does this work need pci's surport?

Creating scheduler

2013-02-06 Thread jeshkumar...@gmail.com
Hi all :), Can anyone suggest a good tutorial to create our own scheduler ? Sent from my HTC Excuse for typo.___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: hard disk dirver

2013-02-06 Thread Valdis . Kletnieks
On Wed, 06 Feb 2013 12:30:37 +0800, horseriver said: root = ? You mean the aasignment at grub command line ? For instance, the grub entry for the kernel I'm running right now: title 3.8.0-rc6-next-20130206 kernel /vmlinuz-3.8.0-rc6-next-20130206 ro root=/dev/mapper/vg_blackice

Re: hard disk dirver

2013-02-06 Thread Valdis . Kletnieks
On Wed, 06 Feb 2013 13:21:17 +0800, horseriver said: At booting stage,kernel need to detect the hard device before mount it, does this work need pci's surport? That depends. Is the controller for the hard drive a PCI-based controller? On most x86-based boxes, it is (and I'm not sure

Re: Creating scheduler

2013-02-06 Thread Valdis . Kletnieks
On Wed, 06 Feb 2013 23:19:26 +0530, jeshkumar...@gmail.com said: Can anyone suggest a good tutorial to create our own scheduler ? Doing an I/O scheduler is pretty trivial, and there's a number of examples in-tree already to look at. If you mean a CPU scheduler, the major reason why there's no

Re: hard disk dirver

2013-02-06 Thread Greg Freemyer
On Wed, Feb 6, 2013 at 12:50 PM, valdis.kletni...@vt.edu wrote: On Wed, 06 Feb 2013 13:21:17 +0800, horseriver said: At booting stage,kernel need to detect the hard device before mount it, does this work need pci's surport? That depends. Is the controller for the hard drive a

Re: Any way to do time keeping during kernel uncompression[ARM architecture]

2013-02-06 Thread Abu Rasheda
On Wed, Feb 6, 2013 at 3:53 AM, sandeep kumar coolsandyfor...@gmail.comwrote: Dear All FYI: I got the below data in my board... For Zimage: Copy from eMMC to RAM(bootloader) other stuff in bootloader -- 200msec Kernel relocation --- 1msec Kernel uncompression -- 700msec Total time taken

Re: hard disk dirver

2013-02-06 Thread Valdis . Kletnieks
On Wed, 06 Feb 2013 13:20:13 -0500, Greg Freemyer said: Most new MB's have a SATA controller directly on the MB connected directly to either the North or South bridge (I don't know which). I don't think any PCI is support needed to talk to the boot disk. Yes, but said SATA controller and

Re: Creating scheduler

2013-02-06 Thread Valdis . Kletnieks
On Wed, 06 Feb 2013 20:40:47 +0100, Jonathan Neuschäfer said: I'm sorry to ask, but don't you rather mean watts than watts per second? There may indeed be a second order time component involved - for instance, a cooling system that can handle 10 watts continuously, 20 watts for up to 30

[no subject]

2013-02-06 Thread Jimmy Pan
unsuscribe ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Qestion about page-_count and page reclaim

2013-02-06 Thread Jimmy Pan
correct me if i am wrong i presume that page pertains to a physical page when the page is allocated, _count would be 1. every process that wants to obtain the page might solicit it from page cache first, if exsists, then _count would increment by one. every process would try to put_page as it

Re: thread concurrent file operation

2013-02-06 Thread Jimmy Pan
actually i dont see why there is a need to ptovide a lock by the kernel. the locking should be at userspace. you can test it by massive write to a file, that would demonstrat the kernel didnt confer a lock sent from my samsung Hello, I was looking at how a syscall read/write was done, and i

Re: hard disk dirver

2013-02-06 Thread Peter Teoh
On Wed, Feb 6, 2013 at 1:21 PM, horseriver horseriv...@gmail.com wrote: hi:) I have a newbie question about hard ware. At booting stage,kernel need to detect the hard device before mount it, does this work need pci's surport? At loading stage ,boot loader need to move

Re: thread concurrent file operation

2013-02-06 Thread Peter Teoh
in ANY updates/changes, locking is always needed, to prevent multiple parties from updating at the same time. but there is another way: lockless updates. one form done in linux kernel is called RCU: http://en.wikipedia.org/wiki/Read-copy-update the logic is whenever someone want to change,

Re: Creating scheduler

2013-02-06 Thread Peter Teoh
well...u asked for it: http://abstract.cs.washington.edu/~shwetak/classes/ee472/assignments/lab2/lab2.pdf http://www.cs.cmu.edu/~410-s07/p3/kernel.pdf http://web.stonehill.edu/compsci/CS314/Assignments/Assignment0.pdf

Re: Creating scheduler

2013-02-06 Thread jeshkumar...@gmail.com
Hey Peter, Think First link is useful for scheduler, thanks :). Sent from my HTC Excuse for typo. - Reply message - From: Peter Teoh htmldevelo...@gmail.com Date: Thu, Feb 7, 2013 9:38 am Subject: Creating scheduler To: jeshkumar...@gmail.com jeshkumar...@gmail.com Cc: kernelnewbies

Re: Any way to do time keeping during kernel uncompression[ARM architecture]

2013-02-06 Thread sandeep kumar
Dear Abu On our board we have a dedicated register to measure the ticks, right from the POWER key press. This register is incremented 32567 times every second. We directly read the register with physical address(MMU is not turned on bootloader, during uncompress_kernel MMU is on but still one on