Re: Understanding memory fragmentation in Linux kernel

2018-12-30 Thread Amit Agarwal
On Sun, 2018-12-30 at 22:54 -0800, Manish Katiyar wrote: > > Maybe you can try > > echo m > /proc/sysrq-trigger I will check this and see if this can provide something useful for me. Did not know about this. > > Or looking at /proc/buddyinfo I looked at buddyinfo and hence asked for more

Re: Understanding memory fragmentation in Linux kernel

2018-12-30 Thread Amit Agarwal
On 2018-12-31 06:22, Manish Katiyar wrote: > How do you know it is because of memory ? If you have sufficient RAM then it > should be able to allocate. Does you application fail with ENOMEM ? > Without knowing the error code from application it's hard to suggest anything. There is no debugging

Understanding memory fragmentation in Linux kernel

2018-12-30 Thread Amit Agarwal
Hi All, I am trying to understand memory fragmentation and how to understand and/or analyze the same. Is there some detailed documentation on pagetypeinfo and buddyinfo files present in the proc directory? Am I looking at right files to understand if the memory is fragmented. Problem

Query on operstatus for link, can I change it?

2015-07-14 Thread Amit Agarwal
Hi, I am looking for a way to change the operstatus shown for the network interface. Problem: I have an extra interface on the machine that I would like to use for some program like tcpreplay and tcpdump/wireshark. So, I would like to play a pcap file on this interface and then capture on the

Re: Query on operstatus for link, can I change it?

2015-07-14 Thread Amit Agarwal
On 15-07-14 20:38:49, Jeff Haran wrote: -Original Message- I think of the two virtual interfaces as real NICs with a cable between them. I am pretty sure they are protocol agnostic. Yes, pretty much that. If so, how do I make sure that no packets other than one injected by me

Re: Query on operstatus for link, can I change it?

2015-07-14 Thread Amit Agarwal
On 15-07-14 19:34:42, Jeff Haran wrote: The last time I looked into this (and this was quite a while ago so take this with much salt) the lo device was not a regular network device. The stack sets up an instance of lo in every network name space created, more or less automatically via the

Re: Query on operstatus for link, can I change it?

2015-07-14 Thread Amit Agarwal
Hi Jeff, On 15-07-14 16:06:39, Jeff Haran wrote: -Original Message- You might be able to make something like this work using network namespaces and veth devices. Depends on whether you really need to use your extra physical interface as the tcpreplay device. Thanks for this

Re: VLAN tagged packets received by application are corrupted

2014-11-21 Thread Amit Agarwal
On 14-11-21 12:51:29, Anupam Kapoor wrote: most likely you offload enabled on your card, try disabling that to see if tcpdump does the right thing for you ethtool -k intf - does not show anything for vlan. More information: Kernel is 2.6.32 Driver being used in tg3. -- Thanks, -aka

Re: eudyptula-challenge

2014-09-23 Thread Amit Agarwal
On 14-09-23 08:11:19, Fernando ApesteguĂ­a wrote: I've been waiting for a week or so to get feedback for my last task. I suppose it will catch up in the next days. I sent my task on this Friday and got response soon after, within couple of hours. But for my next one sent on Sunday, I am yet

Re: [PATCH] staging wlan-ng: Add missing blank lines after declarations

2014-09-16 Thread Amit Agarwal
On Tue, 2014-09-16 at 17:59 -0400, nick wrote: On 14-09-16 05:58 PM, Nicholas Krause wrote: Fixing trivial checkpatch warnings about missing blanks lines after declarations. blanks lines after declarations. I checked my grammar. I am assuming I am still wrong through.

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-14 Thread Amit Agarwal
On 14-07-2014 12:20, shhuiw wrote: Will you please show us your application code, if possible? Or at least the mmap part. The application code is proprietary, so I cannot disclose that. For the mmap part, we are not doing mmap explicitly in our code, rather the binary is linked to some

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-11 Thread Amit Agarwal
Hi, On 10-07-2014 11:12, shhuiw wrote: Hi, How about setting /proc/sys/vm/min_free_kbytes to small values, e.g 128? And what's the output on other workable system? Tried changing min_free_kbytes, with this change, application comes up but dies a little later while allocating memory later.

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-10 Thread Amit Agarwal
On 2014-07-10 10:33, Greg KH wrote: On Wed, Jul 09, 2014 at 05:53:29PM +0530, Amit Agarwal wrote: Hi All, We are running a 32 bit application on RHEL6.3-64 bit OS with kernel version 2.6.32-279.el6.x86_64. Great. So ask them for support for this as you are paying for it, nothing that we

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-10 Thread Amit Agarwal
Hi Rik, On 10-07-2014 11:38, Rik van Riel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/09/2014 08:23 AM, Amit Agarwal wrote: Hi All, We are running a 32 bit application on RHEL6.3-64 bit OS with kernel version 2.6.32-279.el6.x86_64. While running this application we see

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-10 Thread Amit Agarwal
Hi Shhuiw, On 10-07-2014 12:36, shhuiw wrote: . Confused. The words When we are running the same application on other system, it comes up. How can the program run on other systems? By another system, I meant to say with same OS and kernel but on another host. -- Thanks, -aka

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-10 Thread Amit Agarwal
Hi Shhuiw, On 11-07-2014 11:12, shhuiw wrote: What's your workable OS and kernel on the same system, please? We can't change the OS and kernel on the system having issues as it has other services running which are live and we cannot disturb them. So, we tried with same OS and kernel in