Skip to contentSkip to conversation

Regarding Linux device driver Project

DISCUSSION ashutosh mishra 2 participants 2 messages Jan 21, 2011 – Jan 23, 2011 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines

hi
i want to write a driver for DIO-48S PCI Card
(its automation Project - Aluminium Foil Winding Automated System Using PCI Interface)
i want to ask that what are the..prerequesite...for the Project...
i hav konwledge of C,89c51 Microcontroller,Arm Processor.........
but i am not able to start...........i hav gonr through Kernelnewbies at kernelnewbies.org Collected lots of information. so please ...any one can help...????????
its Urgent Require.....

Thanks anr Regard ,
Ashutosh

Quoted 216 lines

From: kernelnewbies-request at kernelnewbies.org
Subject: Kernelnewbies Digest, Vol 2, Issue 50
To: kernelnewbies at kernelnewbies.org
Date: Thu, 20 Jan 2011 12:00:01 -0500

Send Kernelnewbies mailing list submissions to
kernelnewbies at kernelnewbies.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to kernelnewbies-request at kernelnewbies.org

You can reach the person managing the list at
kernelnewbies-owner at kernelnewbies.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Kernelnewbies digest..."

Today's Topics:

1. Re: Running kmemleak without sysfs support (Daniel Baluta)
2. Re: possible regression? (Mag Gam)
3. Re: possible regression? (Greg Freemyer)
4. Re: Regarding Kernel Project (Greg KH)
5. Re: Running kmemleak without sysfs support (Greg KH)

----------------------------------------------------------------------

Message: 1
Date: Thu, 20 Jan 2011 14:33:36 +0200
From: Daniel Baluta <[email protected]>
Subject: Re: Running kmemleak without sysfs support
To: Catalin Marinas <[email protected]>
Cc: kernelnewbies at kernelnewbies.org
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Quoted 7 lines · Catalin Marinas
Quoted 2 lines · Daniel Baluta

Can I make any use of kmemcheck if I don't have sysfs kernel support enabled?

Kmemleak can scan output the memory and report the number of leaked objects but if you need to get additional information about the leaked objects (like backtrace), you need debugfs enabled.

How is this reporting done? It will appear in dmesg output?

Quoted 3 lines

DEBUG_FS doesn't seem to be dependent on SYSFS but I never tried to enable one without the other (you might be able to mount the DEBUG_FS somewhere other than /sys/kernel/debug/).

I see. I was using 2.6.32 where it seems that debugfs depended on sysfs. Decoupling was done some time later [1].

thanks,
Daniel.

[1] http://kerneltrap.org/mailarchive/linux-kernel/2010/8/5/4603446

------------------------------

Message: 2
Date: Thu, 20 Jan 2011 07:50:38 -0500
From: Mag Gam <[email protected]>
Subject: Re: possible regression?
To: Mulyadi Santosa <[email protected]>
Cc: Kernelnewbies at kernelnewbies.org
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8

I am using RHEL 5.1. Sorry for not being clear.

I wil give this a try today when I go back to class. But I was just curious why this was happening. How would one disable "block merge" efficiency? Has this feature been added recently?

Quoted 42 lines · Mulyadi Santosa

Hi...

Quoted 1 line · Mag Gam

Running on Redhat 5.1 if I do,

Are you sure you're using that archaic distro? Or are you talking about RHEL 5.1?

Quoted 3 lines

dd bs=1024 count=1000000 if=/dev/zero of=/dev/null

I get around 30Gb/sec

Hm, mine is:

$ dd bs=1024 count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 1.12169 seconds, 913 MB/s

This is on 2.6.36 SMP kernel compiled with gcc version 4.1.2 20080704 (Red Hat 4.1.2-48).

Quoted 2 lines

However, when I do this with 2.6.37 I get close to 5GB/sec

what if you use another blocksize, let's say 4K or even 32K? here's mine (again):

$ dd bs=4K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
4096000000 bytes (4.1 GB) copied, 1.31167 seconds, 3.1 GB/s
$ dd bs=32K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
32768000000 bytes (33 GB) copied, 4.91775 seconds, 6.7 GB/s

see the difference?

IMHO it's a matter of what I call "block merge efficiency"....the more you stuff pages (that fits into a "magic" number), the faster I/O you got.

Quoted 9 lines

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

------------------------------

Message: 3
Date: Thu, 20 Jan 2011 09:29:20 -0500
From: Greg Freemyer <[email protected]>
Subject: Re: possible regression?
To: Mulyadi Santosa <[email protected]>
Cc: Kernelnewbies at kernelnewbies.org, Mag Gam <[email protected]> Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Mulyadi,

You disappoint me. ;(

Just kidding, but discussing dd throughput without the "conv=fdatasync" parameter is just a waste of everyone's time.

And Mag, use a big enough count that it at least takes a few seconds to complete. A tenth of a second or less is just way to short to use as a benchmark.

Greg

Quoted 48 lines · Mulyadi Santosa

Hi...

Quoted 1 line · Mag Gam

Running on Redhat 5.1 if I do,

Are you sure you're using that archaic distro? Or are you talking about RHEL 5.1?

Quoted 3 lines

dd bs=1024 count=1000000 if=/dev/zero of=/dev/null

I get around 30Gb/sec

Hm, mine is:

$ dd bs=1024 count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 1.12169 seconds, 913 MB/s

This is on 2.6.36 SMP kernel compiled with gcc version 4.1.2 20080704 (Red Hat 4.1.2-48).

Quoted 2 lines

However, when I do this with 2.6.37 I get close to 5GB/sec

what if you use another blocksize, let's say 4K or even 32K? here's mine (again):

$ dd bs=4K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
4096000000 bytes (4.1 GB) copied, 1.31167 seconds, 3.1 GB/s
$ dd bs=32K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
32768000000 bytes (33 GB) copied, 4.91775 seconds, 6.7 GB/s

see the difference?

IMHO it's a matter of what I call "block merge efficiency"....the more you stuff pages (that fits into a "magic" number), the faster I/O you got.

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

Quoted 103 lines
Quoted 8 lines

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 23 lines
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
CNN/TruTV Aired Forensic Imaging Demo -
?? http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com



------------------------------

Message: 4
Date: Thu, 20 Jan 2011 07:12:27 -0800
From: Greg KH <[email protected]>
Subject: Re: Regarding Kernel Project
To: Mulyadi Santosa <[email protected]>
Cc: kernelnewbies <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Quoted 10 lines · Mulyadi Santosa
Quoted 6 lines · Greg KH
Quoted 5 lines · Pein Junior
Quoted 3 lines

What is the USB device and vendor id?

Hope this manual help explaining all that.

Guys, I don't wanna ruin your discussion, but don't you think it's OOT now? or are we going to rename this list as chitchat at vger.org?

This is how you both solve bugs, and learn about solving them yourself.

I'll be glad to take this to the linux-usb or linux-kernel lists, as this type of conversation is quite common there, so why wouldn't it also be common here?

If it's annoying you, I suggest getting a better email client, one that lets you mark any thread as "ignored" so we don't bother you.

best of luck,

greg k-h

------------------------------

Message: 5
Date: Thu, 20 Jan 2011 07:56:57 -0800
From: Greg KH <[email protected]>
Subject: Re: Running kmemleak without sysfs support
To: Daniel Baluta <[email protected]>
Cc: catalin.marinas at arm.com, kernelnewbies at kernelnewbies.org
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 4 lines · Daniel Baluta

Hello all,

Can I make any use of kmemcheck if I don't have sysfs kernel support enabled?

Why would you ever want to run a kernel without sysfs support? If you turn it off, you loose a _lot_ of functionality that you will need to add back to your system in some other manner.

What, specifically, is wrong with sysfs that is solved by turning it off?

thanks,

greg k-h

------------------------------

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

End of Kernelnewbies Digest, Vol 2, Issue 50
********************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110121/10001741/attachment-0001.html

#2 lore raw

Hi,

Quoted 8 lines · ashutosh mishra
Quoted 8 lines

hi
i want to write a driver for DIO-48S PCI Card
(its automation Project - Aluminium Foil Winding Automated System Using PCI Interface)
i want to ask that what are the..prerequesite...for the Project...
i hav konwledge of C,89c51 Microcontroller,Arm Processor.........
but i am not able to start...........i hav gonr through Kernelnewbies at kernelnewbies.org Collected lots of information. so please ...any one can help...????????
its Urgent Require.....

have a look on http://lwn.net/Kernel/LDD3/ especially chapter 12 should help you.

Regrads,
Matthias

Quoted 316 lines

Thanks anr Regard ,
Ashutosh

Quoted 204 lines

From: kernelnewbies-request at kernelnewbies.org
Subject: Kernelnewbies Digest, Vol 2, Issue 50
To: kernelnewbies at kernelnewbies.org
Date: Thu, 20 Jan 2011 12:00:01 -0500

Send Kernelnewbies mailing list submissions to
kernelnewbies at kernelnewbies.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to kernelnewbies-request at kernelnewbies.org

You can reach the person managing the list at
kernelnewbies-owner at kernelnewbies.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Kernelnewbies digest..."

Today's Topics:

1. Re: Running kmemleak without sysfs support (Daniel Baluta)
2. Re: possible regression? (Mag Gam)
3. Re: possible regression? (Greg Freemyer)
4. Re: Regarding Kernel Project (Greg KH)
5. Re: Running kmemleak without sysfs support (Greg KH)

----------------------------------------------------------------------

Message: 1
Date: Thu, 20 Jan 2011 14:33:36 +0200
From: Daniel Baluta <[email protected]>
Subject: Re: Running kmemleak without sysfs support
To: Catalin Marinas <[email protected]>
Cc: kernelnewbies at kernelnewbies.org
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Quoted 6 lines · Catalin Marinas
Quoted 2 lines · Daniel Baluta

Can I make any use of kmemcheck if I don't have sysfs kernel support enabled?

Kmemleak can scan output the memory and report the number of leaked objects but if you need to get additional information about the leaked objects (like backtrace), you need debugfs enabled.

How is this reporting done? It will appear in dmesg output?

Quoted 3 lines

DEBUG_FS doesn't seem to be dependent on SYSFS but I never tried to enable one without the other (you might be able to mount the DEBUG_FS somewhere other than /sys/kernel/debug/).

I see. I was using 2.6.32 where it seems that debugfs depended on sysfs. Decoupling was done some time later [1].

thanks,
Daniel.

[1] http://kerneltrap.org/mailarchive/linux-kernel/2010/8/5/4603446

------------------------------

Message: 2
Date: Thu, 20 Jan 2011 07:50:38 -0500
From: Mag Gam <[email protected]>
Subject: Re: possible regression?
To: Mulyadi Santosa <[email protected]>
Cc: Kernelnewbies at kernelnewbies.org
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8

I am using RHEL 5.1. Sorry for not being clear.

I wil give this a try today when I go back to class. But I was just curious why this was happening. How would one disable "block merge" efficiency? Has this feature been added recently?

Quoted 38 lines · Mulyadi Santosa

Hi...

Quoted 1 line · Mag Gam

Running on Redhat 5.1 if I do,

Are you sure you're using that archaic distro? Or are you talking about RHEL 5.1?

Quoted 3 lines

dd bs=1024 count=1000000 if=/dev/zero of=/dev/null

I get around 30Gb/sec

Hm, mine is:

$ dd bs=1024 count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 1.12169 seconds, 913 MB/s

This is on 2.6.36 SMP kernel compiled with gcc version 4.1.2 20080704 (Red Hat 4.1.2-48).

Quoted 1 line

However, when I do this with 2.6.37 I get close to 5GB/sec

what if you use another blocksize, let's say 4K or even 32K? here's mine (again):

$ dd bs=4K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
4096000000 bytes (4.1 GB) copied, 1.31167 seconds, 3.1 GB/s
$ dd bs=32K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
32768000000 bytes (33 GB) copied, 4.91775 seconds, 6.7 GB/s

see the difference?

IMHO it's a matter of what I call "block merge efficiency"....the more you stuff pages (that fits into a "magic" number), the faster I/O you got.

Quoted 9 lines

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

------------------------------

Message: 3
Date: Thu, 20 Jan 2011 09:29:20 -0500
From: Greg Freemyer <[email protected]>
Subject: Re: possible regression?
To: Mulyadi Santosa <[email protected]>
Cc: Kernelnewbies at kernelnewbies.org, Mag Gam <[email protected]> Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Mulyadi,

You disappoint me. ;(

Just kidding, but discussing dd throughput without the "conv=fdatasync" parameter is just a waste of everyone's time.

And Mag, use a big enough count that it at least takes a few seconds to complete. A tenth of a second or less is just way to short to use as a benchmark.

Greg

Quoted 44 lines · Mulyadi Santosa

Hi...

Quoted 1 line · Mag Gam

Running on Redhat 5.1 if I do,

Are you sure you're using that archaic distro? Or are you talking about RHEL 5.1?

Quoted 3 lines

dd bs=1024 count=1000000 if=/dev/zero of=/dev/null

I get around 30Gb/sec

Hm, mine is:

$ dd bs=1024 count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 1.12169 seconds, 913 MB/s

This is on 2.6.36 SMP kernel compiled with gcc version 4.1.2 20080704 (Red Hat 4.1.2-48).

Quoted 1 line

However, when I do this with 2.6.37 I get close to 5GB/sec

what if you use another blocksize, let's say 4K or even 32K? here's mine (again):

$ dd bs=4K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
4096000000 bytes (4.1 GB) copied, 1.31167 seconds, 3.1 GB/s
$ dd bs=32K count=1000000 if=/dev/zero of=/dev/null
1000000+0 records in
1000000+0 records out
32768000000 bytes (33 GB) copied, 4.91775 seconds, 6.7 GB/s

see the difference?

IMHO it's a matter of what I call "block merge efficiency"....the more you stuff pages (that fits into a "magic" number), the faster I/O you got.

--
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

Quoted 97 lines
Quoted 8 lines

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Signature · 23 lines
Greg Freemyer
Head of EDD Tape Extraction and Processing team
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
CNN/TruTV Aired Forensic Imaging Demo -
?? http://insession.blogs.cnn.com/2010/03/23/how-computer-evidence-gets-retrieved/

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com



------------------------------

Message: 4
Date: Thu, 20 Jan 2011 07:12:27 -0800
From: Greg KH <[email protected]>
Subject: Re: Regarding Kernel Project
To: Mulyadi Santosa <[email protected]>
Cc: kernelnewbies <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
Quoted 7 lines · Mulyadi Santosa
Quoted 4 lines · Greg KH
Quoted 3 lines · Pein Junior
Quoted 2 lines

What is the USB device and vendor id?

Hope this manual help explaining all that.

Guys, I don't wanna ruin your discussion, but don't you think it's OOT now? or are we going to rename this list as chitchat at vger.org?

This is how you both solve bugs, and learn about solving them yourself.

I'll be glad to take this to the linux-usb or linux-kernel lists, as this type of conversation is quite common there, so why wouldn't it also be common here?

If it's annoying you, I suggest getting a better email client, one that lets you mark any thread as "ignored" so we don't bother you.

best of luck,

greg k-h

------------------------------

Message: 5
Date: Thu, 20 Jan 2011 07:56:57 -0800
From: Greg KH <[email protected]>
Subject: Re: Running kmemleak without sysfs support
To: Daniel Baluta <[email protected]>
Cc: catalin.marinas at arm.com, kernelnewbies at kernelnewbies.org
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

Quoted 4 lines · Daniel Baluta

Hello all,

Can I make any use of kmemcheck if I don't have sysfs kernel support enabled?

Why would you ever want to run a kernel without sysfs support? If you turn it off, you loose a _lot_ of functionality that you will need to add back to your system in some other manner.

What, specifically, is wrong with sysfs that is solved by turning it off?

thanks,

greg k-h

------------------------------

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

End of Kernelnewbies Digest, Vol 2, Issue 50
********************************************

------------------------------------------------------------------------

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies