Re: limiting kernel memory

2009-01-07 Thread Hemanth Kumar
Hello,     Thanks for the reply.  My question is as follows          I am having multicore system with  total 4GB RAM . I am running Linux on       one core and other RMIOS application on the other cores.  Since Linux is using   all 4GB total physical RAM, I  want to restrict this physical

Re: limiting kernel memory

2009-01-07 Thread Hemanth Kumar
Hi , Thanks for suggestion's, But I was think of not using boot option's/kernel parameter is there any other method to do this, Regards, Hemanth --- On Thu, 8/1/09, Mark Brown wrote: > From: Mark Brown > Subject: Re: limiting kernel memory > To: hemw...@yahoo.co.in > Cc: kern

RC Script

2009-01-07 Thread abhish agarwal
Hi All, I am trying to capture all console messages at boot up in a file so for that i thought i should change my rc script but it is read only it does not let me change, please tell me a way to capture all messages. I want to follow boot up sequence and want to check any error message at boot

Re: Copying Data Blocks

2009-01-07 Thread Sandeep K Sinha
Hey Greg, On Thu, Jan 8, 2009 at 10:14 AM, Greg Freemyer wrote: > On Wed, Jan 7, 2009 at 11:05 PM, Sandeep K Sinha > wrote: >> Hi Greg, >> >> Just to give you a context of the problem : >> refer: >> http://code.google.com/p/fscops/ >> >> reply inline. >> >> On Wed, Jan 7, 2009 at 9:03 PM, Greg F

Re: limiting kernel memory

2009-01-07 Thread Mark Brown
Hemanth, You can set a hard memory limit with the mem= kernel parameter. see here: http://lxr.linux.no/linux+v2.6.28/Documentation/kernel-parameters.txt#L1224 -- Mark On Jan 8, 2009, at 12:34 AM, Hemanth Kumar wrote: Hi All, I am working on mips-64bit multi-core with 4GB RAM/8GB R

limiting kernel memory

2009-01-07 Thread Hemanth Kumar
Hi All, I am working on mips-64bit multi-core with 4GB RAM/8GB RAM, my question how do,I strict kernel to use only 2GB Physical RAM or Kernel should use only 2GB Physical RAM. Regards, Hemanth Connect with friends all over the world. Get Yahoo! India

Re: Copying Data Blocks

2009-01-07 Thread Greg Freemyer
On Wed, Jan 7, 2009 at 11:05 PM, Sandeep K Sinha wrote: > Hi Greg, > > Just to give you a context of the problem : > refer: > http://code.google.com/p/fscops/ > > reply inline. > > On Wed, Jan 7, 2009 at 9:03 PM, Greg Freemyer wrote: >> On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma wrote: >>> On

Re: Disk Space

2009-01-07 Thread Sandeep K Sinha
Hi Rohit, On Sun, Jan 4, 2009 at 12:56 PM, rohit vashist wrote: > > > On Sun, Jan 4, 2009 at 12:46 PM, Raseel wrote: >> >> On 04-Jan-09, at 12:27 PM, "rohit vashist" >> wrote: >> >>> Hi >>> >>> Can we know the disk space of any unmounted device using any shell >>> command or any? >>> Yes Rohit,

Re: Copying Data Blocks

2009-01-07 Thread Sandeep K Sinha
Hey Manish, On Wed, Jan 7, 2009 at 10:29 PM, Manish Katiyar wrote: > On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar wrote: >> On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha >> wrote: >>> Ok, Let me rephrase what rohit is exactly trying to question. >>> >>> There is an inode X which has say s

Re: Copying Data Blocks

2009-01-07 Thread Sandeep K Sinha
Hi Greg, Just to give you a context of the problem : refer: http://code.google.com/p/fscops/ reply inline. On Wed, Jan 7, 2009 at 9:03 PM, Greg Freemyer wrote: > On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma wrote: >> On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar wrote: >>> On Wed, Jan 7, 20

Prefered distribution amongst kernel developers

2009-01-07 Thread Shaffin Bhanji
Hello All, I dont want to start a distribution war amongst the developers but what seems to be the preferred distribution for kernel developers that has prooven its pace to be able to develop and test vanilla kernels with ease, and includes a gui desktop. Thanks, Shaffin. -- To unsubscribe from

Re: timer interrupt

2009-01-07 Thread Microbit_Ubuntu
Perhaps I should also add my compile invoke (Codesourcery) : arm-none-linux-gnueabi-gcc -Wall -c -O hello_timer.c -o hello_timer -v And and an example of a segmentation fault I get on occasion : Timer module Exited Unable to handle kernel NULL pointer dereference at virtual address 0062 pgd

Re: timer interrupt

2009-01-07 Thread Microbit_Ubuntu
Hi Peter, Matthias et al, Sorry for the delay. Thanks for all your feedback so far ! I'll try to give a better description of the problem and what I think I've learnt so far : First, my small test module code has always used del_timer_sync() on exit. The SAM9260 platform is a single CPU however,

About xawtv

2009-01-07 Thread niamathullah sharief
Hello friends,   i downloaded the xawtv package...but i dont which program is used to capture the videoi found there is a program called "capture.c" in common directory in that package..but i didnt find any memory mapping function in that programso i am very much confused..can anyone

Re: Copying Data Blocks

2009-01-07 Thread Manish Katiyar
On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar wrote: > On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha > wrote: >> Ok, Let me rephrase what rohit is exactly trying to question. >> >> There is an inode X which has say some N number of data blocks. >> Now, through his own kernel module and some

Re: sysfs_notify & poll

2009-01-07 Thread PAtrick Gerber
I found some occurences of sysfs_notify in different driver (phidgetkit driver for example). As I sayd in my previous post now it's working. I can start poll on my attribute (sysfs file) and when I execute sysfs_notify in my driver the event is handled by poll. But I have still a little proble

Re: Copying Data Blocks

2009-01-07 Thread Peter Teoh
On Wed, Jan 7, 2009 at 11:33 PM, Greg Freemyer wrote: > On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma wrote: >> On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar wrote: >>> On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha >>> wrote: Ok, Let me rephrase what rohit is exactly trying to question

Re: sysfs_notify & poll

2009-01-07 Thread PAtrick Gerber
So it's not an error it's normal case ! I am happy to hear that. Thanks for your help. --- En date de : Mer 7.1.09, Belisko Marek a écrit : > De: Belisko Marek > Objet: Re: sysfs_notify & poll > À: kpa_i...@yahoo.fr > Cc: kernelnewbies@nl.linux.org > Date: Mercredi 7 Janvier 2009, 16h26 > Hi,

Re: Copying Data Blocks

2009-01-07 Thread Greg Freemyer
On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma wrote: > On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar wrote: >> On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha >> wrote: >>> Ok, Let me rephrase what rohit is exactly trying to question. >>> >>> There is an inode X which has say some N number of

Re: sysfs_notify & poll

2009-01-07 Thread Belisko Marek
Hi, On Wed, Jan 7, 2009 at 4:20 PM, PAtrick Gerber wrote: > I found some occurences of sysfs_notify in different driver (phidgetkit > driver for example). > > As I sayd in my previous post now it's working. I can start poll on my > attribute (sysfs file) and when I execute sysfs_notify in my dr

Re: sysfs_notify & poll

2009-01-07 Thread PAtrick Gerber
I am not sure but I had understanded that we need to implement the pool syscall, as described in ldd3 books, only for chardevices. For attributes in sysfs, the poll syscall is managed by the kernel/sysfs and we can simply use sysfs_notify on the kernel side. An event queue is managed for each at

Re: sysfs_notify & poll

2009-01-07 Thread PAtrick Gerber
Thanks for the information. I have tested with the example from http://linux.die.net/man/3/poll slightly modified (see the attached file). If I test pool on the "/sys/module/systest/sections/.data" file it seems to work fine. But if I try the same test application with my attribute (/sys/kerne

Re: Writing Vlan driver

2009-01-07 Thread Peter Teoh
Looking through the implementation, it is just in net/dsa/*.c. The marvell specific file is mv88e6*.c, and the switch framework file is dsa.c, which implement the register_switch_driver() API. Question is: does this hardware switching things depends on changes in other parts of linux kernel wh

Re: sysfs_notify & poll

2009-01-07 Thread Belisko Marek
Hi, On Wed, Jan 7, 2009 at 2:21 PM, PAtrick Gerber wrote: > Thanks for the information. > > I have tested with the example from http://linux.die.net/man/3/poll slightly > modified (see the attached file). > If I test pool on the "/sys/module/systest/sections/.data" file it seems to > work fine.

Re: Pre-emption and kernel/softlockup.c softlockup_tick()

2009-01-07 Thread Mulyadi Santosa
Hi... On Tue, Jan 6, 2009 at 10:10 PM, Adrian Cornish wrote: >> Hm,from the function's comment: >> >> /* >> *This callback runs from the timer interrupt, and checks >> * whether the watchdog thread has hung or not: >> */ >> >> that means,it runs in interrupt context, thus AFAIK it won't >> be p

Re: Copying Data Blocks

2009-01-07 Thread Rohit Sharma
On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar wrote: > On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha > wrote: >> Ok, Let me rephrase what rohit is exactly trying to question. >> >> There is an inode X which has say some N number of data blocks. >> Now, through his own kernel module and some

Re: sysfs_notify & poll

2009-01-07 Thread Belisko Marek
Hi, On Wed, Jan 7, 2009 at 9:40 AM, PAtrick Gerber wrote: > Hello, > > I would like to try to use sysfs_notify() / poll() mechanism from my driver > to notify some events to my application. I'm looking for a tiny example > showing the use of this mechanism. > > The driver side with sysfs_notify s

Re: Writing Vlan driver

2009-01-07 Thread Erik Mouw
On Wed, 7 Jan 2009 13:51:22 +0800 "Tekale Sharad-FHJN78" wrote: > Erik Mouw wrote: >> No need to write that, support for IEEE 802.1Q VLAN has been in the >> kernel for ages. > > I need to write the vlan driver for Marvell chip(88e6060), fortunately > it is supported in 2.6.28 kernel, but we are

RE: Writing Vlan driver

2009-01-07 Thread Tekale Sharad-FHJN78
Hi Erik, >I think you can make your life so much easier if you just used 2.8.28 and port your own changes to it. 2.6.21 is almost 2 >years old, that's considered "ancient" and "unsupported" in the Linux world. I wish I could do that, But our software got freezed and we only need to add extra sup

sysfs_notify & poll

2009-01-07 Thread PAtrick Gerber
Hello,I would like to try to use sysfs_notify() / poll() mechanism from my driver to notify some events to my application. I'm looking for a tiny example showing the use of this mechanism. The driver side with sysfs_notify seems quite simple but I have absolutely no idea about the application si

Re: Writing Vlan driver

2009-01-07 Thread Anupam Kapoor
Tekale Sharad-FHJN wrote: , | > I'm looking for virtual lan driver for Marvell switch(88e6060). ` iirc, Lennert Buytenhek has already added an implementation of dsa into the kernel. for doing vlan/bridging stuff, i can think of 2 possibilities : - snoop 'brctl' commands - or bett

Re: Copying Data Blocks

2009-01-07 Thread Manish Katiyar
On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha wrote: > Ok, Let me rephrase what rohit is exactly trying to question. > > There is an inode X which has say some N number of data blocks. > Now, through his own kernel module and some changes to the file system, > he wants to create a new inode Y i

Re: filter drivers in Linux

2009-01-07 Thread Ramya Desai
On Wed, Jan 7, 2009 at 12:03 PM, Greg KH wrote: > On Wed, Jan 07, 2009 at 11:33:06AM +0530, Ramya Desai wrote: >> Can anyone suggest the possibility of writing a UASP driver in Linux >> as mentioned ? or any such implementation is available in any of Linux >> flavours? As for as I know, UASP looks