broadcast arp messages and linux kernel

2013-05-18 Thread Mahmood Naderan
Hello, Recently I have detected an IP conflict while my OS is redhat. Searching for a solution revealed that linux kernel doesn't reply to broadcast arp messages *at all*. As a result when someone asks "who has ip A.B.C.D?", my kernel won't reply to that and the other host thinks no one has th

Using perf on AMD 15h

2015-06-05 Thread Mahmood Naderan
Hi Guys, My first question is, does the version of kernel affects the perf functionality? I mean fixing bugs and ... Currently, the kernel version is 2.6.39 and here is the problem: According tot he BKDG of AMD 15h, it is possbile to disable the hardware prefetcher by setting some bits of MSRC001_

Re: Using perf on AMD 15h

2015-06-06 Thread Mahmood Naderan
Bringing up my question one more time since it may be lost in the high volume of messages. Hope to receive an idea... On 6/6/15, Mahmood Naderan wrote: > Hi Guys, > My first question is, does the version of kernel affects the perf > functionality? I mean fixing bugs and ... > Cu

Perf doesn't show build-id of the application itself

2020-05-30 Thread Mahmood Naderan
When I run the following perf command for collecting user data $ perf record -e cycles:u -j any,u -a -o perf.data.user ./test The output of build-id checking is $ perf buildid-list -f -i perf.data.user dbd41c586ea6789f3b998ed28be6ff37134e917a /lib/modules/4.19.125/build/vmlinux b5381a457906d2790

Thread Scheduler

2014-03-19 Thread Mahmood Naderan
Hi Maybe this is a noob question... Where in the linux kernel source (2.6), the thread scheduler has been implemented? Searching the web shows that there should sched_fair.c but I can not find that in the source directory (the kernel source has been installed). Basically, I want to know

Re: Thread Scheduler

2014-03-19 Thread Mahmood Naderan
>On Wednesday, March 19, 2014 3:57 PM, Mike Galbraith > wrote: >On Wed, 2014-03-19 at 02:57 -0700, Mahmood Naderan wrote: >> >> Hi >> Maybe this is a noob question... >> Where in the linux kernel source (2.6), the >> >> thread scheduler ha

Re: Thread Scheduler

2014-03-19 Thread Mahmood Naderan
On Wednesday, March 19, 2014 4:36 PM, Jack Carrozzo wrote: >On Wed, Mar 19, 2014 at 7:34 AM, Mahmood Naderan wrote: > >> >> [...] >> Do you mean include/linux/sched.h ? >> Where is he implementation then? > >Your kernel source is incomplete. You can fetch

Re: Thread Scheduler

2014-03-23 Thread Mahmood Naderan
>On Thursday, March 20, 2014 6:53 AM, Mike Galbraith >wrote: > >marge:~ # man -k setscheduler getscheduler >sched_setscheduler (2) - set and get scheduling policy/parameters >sched_setscheduler (3p) - set scheduling policy and parameters (REALTIME) >sched_getscheduler (2) - set and get sche

Re: Thread Scheduler

2014-03-23 Thread Mahmood Naderan
On Sunday, March 23, 2014 6:35 PM, Mark Knecht wrote: >In terms of changing the scheduler I think that you possibly missed >reading Documentation/block/switching-sched.txt in the kernel's >documentation directory. > >HTH, >Mark That is IO scheduler. Can we use the same for threads/processes?

CPU usage limitation (number of cores)

2016-03-22 Thread Mahmood Naderan
Hi, There is a question about CPU usage limitation and I found no place for my question other than here. There are 32 cores in a system (2 cpus each 16 cores) and I want to limit a user to use only 4 cores (100% usage for that 4 cores). There are two kernel parameter for that according to the manu

Re: CPU usage limitation (number of cores)

2016-03-22 Thread Mahmood Naderan
Try #1 to bring the post up again. Due to the traffic, maybe my question is ignored :( Regards, Mahmood On Tue, Mar 22, 2016 at 1:09 PM, Mahmood Naderan wrote: > Hi, > There is a question about CPU usage limitation and I found no place > for my question other than here. > &g

Question regarding brstack

2020-06-26 Thread Mahmood Naderan
Hello I used "brstack" in the perf command and see the following entries 0xb220bda7/0xb2209890/P/-/-/0 0x40053a/0x400530/P/-/-/0 The first and seconds are said to be the branch instruction and target addresses. However, it is not written in the manual if that is a virtual or phys

Using a custom LDFLAG for all objects and binaries

2020-05-10 Thread Mahmood Naderan
Hi I would like to modify the kernel makefile in a way to include --emit-relocs for every file that is linked during the process of kernel make. I see KBUILD_HOSTLDFLAGS := $(HOST_LFS_LDFLAGS) $(HOSTLDFLAGS) LDFLAGS_MODULE = LDFLAGS_vmlinux = ... But I don't know which one is the main. Should I

Re: Using a custom LDFLAG for all objects and binaries

2020-05-10 Thread Mahmood Naderan
> Have you read Documentation/kbuild/makefiles.rst ? > > LDFLAGS > Generic $(LD) options > > Flags used for all invocations of the linker. What I see is this in Documentation/kbuild/makefiles.txt LDFLAGS Generic $(LD) options Flags used for all invoca

Re: Using a custom LDFLAG for all objects and binaries

2020-05-10 Thread Mahmood Naderan
> > or > > 2- Editing arch/x86/Makefile with > >KBUILD_LDFLAGS := -m --emit-relocs elf_$(UTS_MACHINE) > > That should work. Seems not... I ran the following commands: $ cp -v /boot/config-$(uname -r) .config $ make menuconfig -> Exit -> Save $ vim arch/x86/Makefile KBUILD_LDFLAGS := -m

Re: Using a custom LDFLAG for all objects and binaries

2020-05-10 Thread Mahmood Naderan
>OK, I suggest that you reorder the options like so: > >KBUILD_LDFLAGS := -m elf_$(UTS_MACHINE) --emit-relocs I did that. After $ make V=1 $ sudo make modules_install V=1 $ sudo make install I grepped for "emit-relocs" in the log and saw many instances such as gcc -Wp,-MD,drivers/rtc