Linux kernel

Discussion about the Linux kernel.

why the funny kernel always crashes ?

Submitted by gazolinia
on May 27, 2010 - 1:50pm

Hi,

Linux: Dual port 3G SAS drive get port swapped after power cycling

Submitted by jupiturliu123
on May 20, 2010 - 4:43pm
Linux

Hi All :

We do power cycling test over our dual port 3G/6G drive test over LSI 3G 1068E/ 6G 2008 Controller. We sometime found the port get swapped during the power cycling. It happened more often in 3G SAS controller than 6G controller.
For example:
In the beginning before power off,
phy 0, sas_addr 0x50014ee30005078e were associated with sda and sg2
but after power on.

what is an APE memory?

Submitted by skokal01
on May 12, 2010 - 11:16pm
Linux

Hey I was going through Broadcom Tigon 3 drivers code and I see that APE memory is mapped using pic_ioremap_bar(pdev,BAR_2).

I couldn't any information in the broadcom datasheet about APE memory. What is an APE memory and what exactly it is used for?

http://lxr.linux.no/linux+v2.6.33/drivers/net/tg3.c#L14499

Thanks,
Santhosh Kokala

kernel hangs

Submitted by ub007
on May 10, 2010 - 1:54am
Linux

my hp proliant DL185 server doesn't boot up as expected .

i've managed to capture the msgs & traces dumped to console. See below

Quote:
end_request: I/O error, dev cciss/c0d2, sector 0
end_request: I/O error, dev cciss/c0d2, sector 0
end_request: I/O error, dev cciss/c0d2, sector 1
Quote:
ciss: cmd f6c00000 has CHECK CONDITION sense key = 0x4

syscall interception module on 2.6.32

Submitted by saliari2
on May 8, 2010 - 7:00am
Linux

Hi,

I am using the following kernel module to intercept some syscalls. I have got sys_call_table address from the /boot/System.map.x.x. The module works file on Ubuntu 7.10 (2.6.24) but gets killed upon insmod in Ubuntu 10.04 and Fedora 12 (2.6.32) with error "Kernel paging request error address c0xxxxx [which is, based on System.map, an address in sys_call_table]".

Compile new kernel on old system - problems

Submitted by witjojo
on May 6, 2010 - 3:32am
Linux

Hello,

I have a old SuSe Linux 9.3 distribution with a 2.6.11.4-21 Suse Kernel.
Now i have new Hardware and will the old system run on this new Hardware, but some new Hardware
is not working (Network, PCI, Graphic an so on). And i need the old System (very important).

So i compiled an new Suse kernel (2.6.31 from Suse 11.2) on the old Suse 9.3 in the new Hardware System.

How to determine Amount of free kernel memory and problem with __get_free_pages()

Submitted by Anonymous
on May 4, 2010 - 8:41pm
Linux

I want to write a loop that sucks up all the 2mb slugs of memory I can get in the kernel. However, I want to leave "some" free space (say 20% of the machine's total phys mem). So, how can I do that? I have a loop now something like as an experiment to get all the mem I can and then release enough for the system to continue running but the kernel hangs:

for( i = 0; i < MAX_SLUGS; ++i )
{

TCP Limited Transmit

Submitted by Anonymous
on May 4, 2010 - 1:57pm
Linux

Where is implemented in the kernel linux the Limited Transmit Algorithm? It is explained in rfc 3042.. I have not found it in the tcp_input.c file...

CFS scheduler patch for 2.6.18-164?

Submitted by Anonymous
on April 20, 2010 - 8:11pm
Linux

I'm using RHEL 5.4 with the kernel 2.6.18-164.Can I introduce the CFS into the kernel by adding a patch,or should I create the patch myself?
Is there any available patch for this kernel?

Problem with sock_create in KLM

Submitted by Anonymous
on April 18, 2010 - 3:05pm
Linux

Hello, i am dealing with studiing kernel module. As example i am using block device from lwn
http://lwn.net/Articles/58719/

and so far so good, but i am trying to create simple network disk (just for test, ...)

I found this article.

http://www.linuxjournal.com/node/7660

determining the size of L2 cache

Submitted by Anonymous
on April 17, 2010 - 6:36am
Linux

Is there any way to know the L2 cache size from examinging to boot log. Here is my boot log

Linux version 2.6.13-jaluna (root@localhost.localdomain) (gcc version 3.2.2) #4
Thu Apr 23 23:16:10 EDT 2009
TMS320DM643X port (C) VirtualLogix and others
Designed for the EVMDM6437 board, Spectrum Digital Inc.
CPU: C64x+ revision unknown core voltage 1.2V core number 0

TCP socket recv() stuck on waiting the rest of the message

Submitted by Anonymous
on April 14, 2010 - 4:08pm
Linux

I am trying to create a socket server in user space and a client in kernel space and send big messages (a little over 64kbytes) between them.

I used an kernel socket programming examplefrom this link - http://www.linuxjournal.com/article/7660 for the kernel client side.

System Call

Submitted by eldereng
on April 11, 2010 - 11:26am
Linux

xxxxxx

...

Submitted by eldereng
on April 11, 2010 - 11:19am
Linux

..

Netlink Socket in Linux Kernel

Submitted by harishkumar
on April 1, 2010 - 12:46am
Linux

Hi,

I am experimenting netlink socket for kernel space to user space communication in linux 2.6.32 kernel.

My intension is to perform,

kernel space --------------> user space
kernel space <------------- user space

i have few questions,

1) how to determine the pid of the userspace process, if kernel is going to initiate the communication by sending the data.