Re: Query on git usage for creating patch with incremental commits

2014-12-12 Thread Kumar Amit Mehta
changes to a different branch (using the '-- onto' option). > > HTH, > -mandeep > > > > On Fri, Dec 12, 2014 at 6:58 AM, Kumar Amit Mehta > wrote: > > Hi, > > > > I know that it's not a typical Linux kernel related query but I reckon >

Query on git usage for creating patch with incremental commits

2014-12-12 Thread Kumar Amit Mehta
Hi, I know that it's not a typical Linux kernel related query but I reckon that people involved in Linux kernel testing/development might have gotten into similar situation. So, please bear with me for this rather generic framework related query. The scenario: 1: Cloned linux-next at time T1 $ gi

Re: Memory profiling tools for Linux Kernel

2014-04-04 Thread Kumar Amit Mehta
On Fri, Apr 04, 2014 at 01:49:05AM -0700, aaditya.gavandal...@yahoo.com wrote: > Hi, > > You can you a heap profiler to check heap usage for example massif. > > Massif is a tool under valgrind package. You can research on valgrind more > for other helpful tools as well. Memcheck is bydefault in

Re: Memory profiling tools for Linux Kernel

2014-04-04 Thread Kumar Amit Mehta
On Fri, Apr 04, 2014 at 10:34:54AM +0200, Vegard Nossum wrote: > On 4 April 2014 02:45, Kumar Amit Mehta wrote: > > I was looking for some tools for memory profiling for Linux Kernel. I > > I wish to analyze the memory usage statistics by comparing the results > > (with and

Memory profiling tools for Linux Kernel

2014-04-03 Thread Kumar Amit Mehta
I was looking for some tools for memory profiling for Linux Kernel. I I wish to analyze the memory usage statistics by comparing the results (with and without the usage of Lookaside caches) by the consumer (Say a certain driver).I found some tools such as kmemcheck[1] and KEDR [2] but before I go f

Re: Line rate

2013-10-31 Thread Kumar Amit Mehta
On Thu, Oct 31, 2013 at 11:59:23AM -0700, Robert Clove wrote: > I have an 10Gbps link between my servers. > I want to achieve the line by 1200 -1500 packet size how can i do that i > only able to achieve the 4Gbps rate. I remember, referring this nice presentation[1] by Mark Wagner, while I was do

Re: Dinning-philosphers problem, solution using counting semaphore and fair scheduling

2013-10-22 Thread Kumar Amit Mehta
On Mon, Oct 21, 2013 at 05:43:50AM -0700, Robert P. J. Day wrote: > the standard solution is to simply order the resources and require > everyone to request resources in that order. problem solved. don't > make this into a bigger issue than it really is. Thank you for giving me some directions.

Dinning-philosphers problem, solution using counting semaphore and fair scheduling

2013-10-21 Thread Kumar Amit Mehta
Hi All, This query is not about linux kernel in any way, but rather is a very primitive question on scheduling and resource management principles, using the dinning-philosphers analogy. I assume, most of the people here would have faced such situation and hence thought of discussing this in this f

Re: Reference material for x86-64 assembly on Linux

2013-05-21 Thread Kumar amit mehta
On Mon, May 20, 2013 at 02:56:26PM +0530, Rajat Sharma wrote: > Following book describes GNU assembler in a very simple manner: > http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764579010.html Thank you for suggesting me this book, I'll have a look, though this book seem to be covering the IA32

Re: Major number for multipath block devices

2013-05-06 Thread Kumar amit mehta
On Mon, May 06, 2013 at 08:09:03PM -0400, Kumar amit mehta wrote: > If I have one logical volume(Talking in LVM terms)and have two paths to the > same logical volume, then it seems that the two logical volumes will have the > same major number(refer [1]). My apologies for typo mistake

Major number for multipath block devices

2013-05-06 Thread Kumar amit mehta
Hi, I've a query regarding the major numbers for block devices that the block layer would provide (upon invocation of register_blkdev() with '0' as the major number) for the multipath devices, i.e. If I have one logical volume(Talking in LVM terms)and have two paths to the same logical volume, th

Re: kernel panic in sample block device driver

2013-05-02 Thread Kumar amit mehta
On Wed, May 01, 2013 at 10:24:40PM +0530, Pranay Srivastava wrote: > https://github.com/pranjas/block_driver > Thank you so much, looks pretty heavy-duty right now though!!! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.ker

kernel panic in sample block device driver

2013-05-01 Thread Kumar amit mehta
Hi, I'm new to block layer in linux and to learn the same, I'm trying to come up with a sample memory based block device driver, with which I can experiment and learn along the way. I'm referring to sample code from the linux tree [1] and assorted information available over the internet. My curre

Documentation on device-mapper and friends

2013-04-28 Thread Kumar Amit Mehta
I'm looking for information on device-mapper, the kernel space utility for Logical Volume Management (LVM2). It seems that the relevant code resides under drivers/md and a lot of other information is under Documentation/device-mapper/ That's fine, but is there any other document that gives more fi

Re: kernel build error

2013-04-01 Thread Kumar amit mehta
On Tue, Apr 02, 2013 at 10:04:31AM +0700, Mulyadi Santosa wrote: > Could you paste roughly 20-30 lines of boot messages when you hit the hung > point? Kernel config alone usually can't help much I'm trying this on a Virtual Machine using VMware Player. When the VM boots up, it throws lots of messa

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-29 Thread Kumar amit mehta
> On Tue, Mar 26, 2013 at 09:31:01PM +0200, Rami Rosen wrote: > > Hi, > > > > 1) You can be sure that it does not use more than one rx queue. > > > > You can find more info about RX queues in > > http://media.wix.com/ugd//295986_4ef6dbdf11fd0a7f74f09741b4b5b2ee.pdf > > Thank you so much for sha

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-29 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 09:31:01PM +0200, Rami Rosen wrote: > Hi, > > 1) You can be sure that it does not use more than one rx queue. > > You can find more info about RX queues in > http://media.wix.com/ugd//295986_4ef6dbdf11fd0a7f74f09741b4b5b2ee.pdf > > (I wrote it, a shameless plug...) > > 2

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-26 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 08:35:56PM +0200, Rami Rosen wrote: > 1) Regarding rx queues: what does > "ls /sys/class/net/eth0/queues" > show ? > $ ls /sys/class/net/eth0/queues rx-0 tx-0 > 2) can you try setting affinity for working only with CPU3 > and see what happens after some traffic is sent b

Re: relationship between cpu_affinity and Packet RX Processing

2013-03-26 Thread Kumar amit mehta
On Tue, Mar 26, 2013 at 11:45:55AM -0700, Arlie Stephens wrote: > I don't know for sure what linux does, but the NICs I've seen with > multiple queues tend to select queues by hashing incoming packets > based on source IP, sourse port, destination IP, destination port and > (if TCP) protocol. >

relationship between cpu_affinity and Packet RX Processing

2013-03-26 Thread Kumar amit mehta
Hi All, I was reading some stuff on interrupts and irq lines today and I thought I'll expermient with the network rx path. To start with, I've a Virtual Machine running 3.8 linux kernel. My machine has 4 CPU cores, network (eth) interface is driven by pcnet_32 AMD driver and is tied to IRQ line #

Re: kernel build error

2013-03-24 Thread Kumar amit mehta
On Sun, Mar 24, 2013 at 12:49:55PM +0700, Mulyadi Santosa wrote: > On 3/22/13, Kumar amit mehta wrote: > > I've uploaded the kernel configuration and the screenshot in google drive > > [1]. > > ok let's see... hmmm, stuck during I/O memory mapping?

Re: kernel build error

2013-03-22 Thread Kumar amit mehta
On Fri, Mar 22, 2013 at 10:41:56AM +0700, Mulyadi Santosa wrote: > On Thu, Mar 21, 2013 at 1:16 PM, Kumar amit mehta > wrote: > boot issue. But > > before attaching these small files(136K and 32K respectively) and send it to > > the mailing list, I'd like to ask, if

Re: kernel build error

2013-03-20 Thread Kumar amit mehta
Inline On Wed, Mar 20, 2013 at 12:07:57AM -0700, Kumar amit mehta wrote: > On Tue, Mar 19, 2013 at 11:56:44PM -0700, Kumar amit mehta wrote: > > On Tue, Mar 19, 2013 at 09:43:11PM +0700, Mulyadi Santosa wrote: > > > Hi ... > > > > > > On Tue, Mar 19

Re: kernel build error

2013-03-20 Thread Kumar amit mehta
On Tue, Mar 19, 2013 at 11:56:44PM -0700, Kumar amit mehta wrote: > On Tue, Mar 19, 2013 at 09:43:11PM +0700, Mulyadi Santosa wrote: > > Hi ... > > > > On Tue, Mar 19, 2013 at 12:28 PM, Kumar amit mehta > > wrote: > > > grep for copy_from_user_overflow gi

Re: kernel build error

2013-03-20 Thread Kumar amit mehta
On Tue, Mar 19, 2013 at 09:43:11PM +0700, Mulyadi Santosa wrote: > Hi ... > > On Tue, Mar 19, 2013 at 12:28 PM, Kumar amit mehta > wrote: > > grep for copy_from_user_overflow gives me this: > > > > amit@ubuntu:~/linux-next/linux-next$ grep -ri copy_from_user_overfl

Re: kernel build error

2013-03-18 Thread Kumar amit mehta
On Mon, Mar 18, 2013 at 11:21:52AM +0700, Mulyadi Santosa wrote: > On 3/17/13, Kumar amit mehta wrote: > > I'm facing a kernel build issue with the latest kernel on my machine. It > > seem > > like a configuration issue, and I haven't been able to resolve it for &g

kernel build error

2013-03-17 Thread Kumar amit mehta
I'm facing a kernel build issue with the latest kernel on my machine. It seem like a configuration issue, and I haven't been able to resolve it for sometime, hence need your help. The error message is as below: ERROR: "copy_from_user_overflow" [net/core/pktgen.ko] undefined! ERROR: "copy_from_use

Query on skb buffer

2013-03-06 Thread Kumar amit mehta
My current understanding is that the skb, while being passed along various layers in linux network stack, will be manipulated majorly, using the skb->{head|data|tail|end|len} fields. Suppose that my application (say 'ping') sends a ICMP echo request with a large packet size of 4k, i.e. $ ping -s

Re: atomic operations

2013-02-24 Thread Kumar amit mehta
On Sun, Feb 24, 2013 at 08:53:20PM +0800, Peter Teoh wrote: > Another good article on atomicty and data sizes: > > http://www.ibm.com/developerworks/library/pa-atom/ > > On Sun, Feb 24, 2013 at 8:50 PM, Peter Teoh wrote: > > > in simple terms, any operation, in terms assembly instructions, whic

Beyond kernel-janitor

2013-02-15 Thread Kumar amit mehta
Hi All, After watching Greg's video on "How to write and submit your first patch",the discussions that happened over kernel newbie mailing list and the assorted information scattered in the kernel Documentation directory, I was able to set up my Linux box for sending janitorial related patches (mo

Re: Does kernel Image file contains the elf format information ?

2012-11-26 Thread Kumar amit mehta
On Tue, Nov 27, 2012 at 12:44:45PM +0800, horse_rivers wrote: > hi, >    when we compile kernel,gcc will put elf format information into the target > file ,then we use build-tools construct the kernel Image, > >   during this procedure,will elf information be copyed into Image file ? > Yes, it d

Re: Managing linux-next tree for submitting patches

2012-11-21 Thread Kumar amit mehta
On Wed, Nov 21, 2012 at 02:47:15AM -0500, devendra.aaru wrote: > that maintainer's tree is next tree so that next can pickup. once the > next pics up your changes gets merged there in next. > > always its good to work against' maintainers trees, if its a fix then > its better work on the maintain

Re: Managing linux-next tree for submitting patches

2012-11-20 Thread Kumar amit mehta
On Wed, Nov 21, 2012 at 01:51:14AM -0500, devendra.aaru wrote: > On Wed, Nov 21, 2012 at 1:43 AM, Kumar amit mehta > wrote: > > On Wed, Nov 21, 2012 at 12:52:58AM -0500, devendra.aaru wrote: > >> On Wed, Nov 21, 2012 at 12:36 AM, Kumar amit mehta > >> wrote: >

Re: Managing linux-next tree for submitting patches

2012-11-20 Thread Kumar amit mehta
On Wed, Nov 21, 2012 at 12:52:58AM -0500, devendra.aaru wrote: > On Wed, Nov 21, 2012 at 12:36 AM, Kumar amit mehta > wrote: > > Hi, > > > > After some discussions that happened over kernel newbie mailing list in > > past, > > I've managed to send some

Managing linux-next tree for submitting patches

2012-11-20 Thread Kumar amit mehta
Hi, After some discussions that happened over kernel newbie mailing list in past, I've managed to send some trivial patches to linux janitors and to relevant maintainers. My patch base has been linux-next tree and I'm glad that some of them got merged. Recently, for one of my patch, I got a reply

Re: Fwd: ifconfig / alloc_netdev

2012-11-07 Thread Kumar amit mehta
gt; this problem?. > > On Mon, Nov 5, 2012 at 11:36 PM, Kumar amit mehta > wrote: > > On Mon, Nov 05, 2012 at 09:34:55PM -0500, A B wrote: > >> I'm facing an issue where > >> ifconfig command output doesn't display the interface that is created > >>

Re: Tools for checking incorrect usage of locking techniques in k-space

2012-11-06 Thread Kumar amit mehta
On Mon, Nov 05, 2012 at 09:51:19AM +0400, Vladimir Murzin wrote: > I've not tried your module, but I suppose that you should get warning > as soon as you try to take write semaphore once again. > Thank you for your mail. I wanted to try what you've suggested, but now I'm facing a different problem.

Re: Fwd: ifconfig / alloc_netdev

2012-11-05 Thread Kumar amit mehta
On Mon, Nov 05, 2012 at 09:34:55PM -0500, A B wrote: > I'm facing an issue where > ifconfig command output doesn't display the interface that is created > using alloc_netdev and registered using register_netdev. > > If i do 'ifconfig -a', i'm seeing the interface which i created. > > Under what c

Re: make error

2012-11-01 Thread Kumar amit mehta
On Thu, Nov 01, 2012 at 03:13:04PM +0200, Gregg Douglas wrote: > Thanks Anmol, first installed the following extra packages > "linux-kernel-headers kernel-syms module-init-tools" then ran make > oldconfig && make prepare, I get further: > make M=drivers/staging/bcm/ > > WARNING: Symbol version

Re: Tools for checking incorrect usage of locking techniques in k-space

2012-10-31 Thread Kumar amit mehta
On Mon, Oct 29, 2012 at 12:03:08AM +0530, Srivatsa Bhat wrote: > You'll need CONFIG_LOCKDEP=y as well. An easy way to configure lock debugging > checks is to run 'make menuconfig' and enable the required options under the > "Kernel hacking" section. > > > > > If above configuration is all that I n

Re: Tools for checking incorrect usage of locking techniques in k-space

2012-10-27 Thread Kumar amit mehta
On Sat, Oct 27, 2012 at 09:26:51PM +0530, Srivatsa Bhat wrote: > On Sat, Oct 27, 2012 at 10:11 AM, Kumar amit mehta > wrote: > > Hi, > > > > I recently came across this tool called KEDR[1] for checking memory leak in > > kernel modules. I'm using it to check

Tools for checking incorrect usage of locking techniques in k-space

2012-10-26 Thread Kumar amit mehta
Hi, I recently came across this tool called KEDR[1] for checking memory leak in kernel modules. I'm using it to check If my trivial kernel modules (based on LDD3 examples) are leaking memory. I was wondering if there exist a similar tool for checking incorrect usage of locking techniques implem

Re: Query on CodingStyle: indentation

2012-10-21 Thread Kumar amit mehta
On Fri, Oct 19, 2012 at 11:40:35AM -0400, Greg Freemyer wrote: > On Fri, Oct 19, 2012 at 5:00 AM, Kumar amit mehta > wrote: > > On Fri, Oct 19, 2012 at 03:03:28PM +0800, Adam Lee wrote: > >> On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: > >> &g

Query on kernel module Makefile

2012-10-19 Thread Kumar amit mehta
I came across the following information in ~Documentation/kbuild/makefiles.txt --- 3.7 Compilation flags ccflags-y, asflags-y and ldflags-y These three flags apply only to the kbuild makefile in which they are assigned. They are used for all the normal cc, as and ld i

Re: Query on CodingStyle: indentation

2012-10-19 Thread Kumar amit mehta
On Fri, Oct 19, 2012 at 03:03:28PM +0800, Adam Lee wrote: > On Thu, Oct 18, 2012 at 10:31:29PM -0700, Kumar amit mehta wrote: > > Hi, > > > > I've a query regarding the coding style for Linux Kernel code. I'm > > reading the CodingStyle under Documentation a

Query on CodingStyle: indentation

2012-10-18 Thread Kumar amit mehta
Hi, I've a query regarding the coding style for Linux Kernel code. I'm reading the CodingStyle under Documentation and what I've understood is that I shouldn't be using spaces for indentation purposes and should use tabs of width 8 characters. Quoting from the same document: "Outside of comments,

Re:

2012-10-15 Thread Kumar amit mehta
On Mon, Oct 15, 2012 at 04:23:59PM +0530, Niroj Pokhrel wrote: > Thank Matthias!!! > I have tried using printk . What I really want to do now is to implement > the methods I have written by calling from the user space. Like I want to > read or write to the character devices via user space. > Did y

Re: Network Byte order not reached reading from a sock RAW

2012-10-15 Thread Kumar amit mehta
On Mon, Oct 15, 2012 at 07:46:08AM +, Pietro Paolini wrote: > Hello, > Thanks for your answer, my question is why when I read from the buffer data > is already in host byte order and not in network byte order. > Thanks > Pietro Paolini. > Hi Pietro, The host doesn't care how the data has tra