[PATCH] zram percpu implementation

2013-07-16 Thread mani
>From 4d52438c9640e64203c2434a74e2abfe3a4168ec Mon Sep 17 00:00:00 2001 From: Manish Sharma Date: Thu, 4 Apr 2013 10:32:08 +0530 Subject: [PATCH] zram percpu implementation This patch will create a percpu structures compression algo. 1. Takes extra memory for workspace buffers. I haven't seen any

Re: Hung Task Timeout

2012-04-18 Thread mani
that (we are not sending any signal to the task so it will remain in the wait_queue) 2. we call a wake_up () call. otherwise there is no point in putting the task in run queue which has nothing to do. Thanks, Mani On Tue, Apr 17, 2012 at 6:16 PM, Philipp Ittershagen < p.ittersha...@googlemail

Re: Hung Task Timeout

2012-04-17 Thread mani
d by the scheduler. If YES, then why it is needed to schedule task in TASK_INTERRUPTIBLE state ? What is the significance of the task->switch_count in the scheduler ? surely it got updated for the TASK_INTERRUPTIBLE task. [kernel/hung_task.c]check_hung_task() Thanks Mani On Tue, Apr 17, 2012 at

Hung Task Timeout

2012-04-16 Thread mani
Hi All, How kernel scheduler treats task's TASK_UNINTERRUPTIBLE & TASK_INTERREPTIBLE states ? Actually in my case i have created a kernel thread and it is waiting on an event as per below :- wait_event(queue, flag); in the above condition it gives me hung task timeout dump as it puts the task i

Re: Re SD/MMC subsystem resources

2011-11-10 Thread mani
Hi, I also didnt get any good doc on the mmc sub system whereas there are few things that might help A slide which explains driver stack:- http://www.slideshare.net/champ_yen/linux-sdmmc-driver-stack Check JEDEC specs (open standard for MMC /eMMC) http://www.jedec.org/sites/default/files/docs/JES

Re: Getting a block from a block device?

2011-11-08 Thread mani
if you wanna open a block device specificallyy you can look into fs/block_dev.c struct block_device *open_bdev_exclusive(const char *path, fmode_t mode, void *holder) Also i think if you are interested in reading the first sector then you can probably check the block/genhd.c file get the disk (i.

How to identify Connected USB Storage device (Harddisk, flash Memory or SSD)

2011-09-06 Thread mani
Hi all, Is there any way to find out the type of the connected USB disk (Hard disk/SDD)? AFAIK there is a significant performance difference in Harddisk/SDD devices. Previously i though that the rotational flag in the sysfs will distinguish them but it is same for both the types #cat /sys/block

Re: Creating sparse file on XFS and EXT3 has different results

2011-08-07 Thread mani
g the same hard disk with same disk block size ? On Sat, Aug 6, 2011 at 9:51 PM, mani wrote: > Dear Ashish, > > The ls uses st_size while du uses st_blocks. > try using the ls -ls it will give you both the o/p's . > > Thanks > Manish > > On Fri, Aug 5, 2011 at 7:

Re: Creating sparse file on XFS and EXT3 has different results

2011-08-06 Thread mani
Dear Ashish, The ls uses st_size while du uses st_blocks. try using the ls -ls it will give you both the o/p's . Thanks Manish On Fri, Aug 5, 2011 at 7:45 AM, Ashish Sangwan wrote: > I write 1 program to create sparse file which contains alternate empty > blocks and data blocks. For example blo

Re: Changes in block layer for IOScheduler Insertion selection

2011-06-01 Thread mani
Dear All, Any suggestions on the below point ? Thanks in advance.. On Mon, May 30, 2011 at 10:53 AM, mani wrote: > Dear Eduardo, > >I am using squashfs filesystem. So i am more concern with the read > speed. > whereas below

Re: Changes in block layer for IOScheduler Insertion selection

2011-05-29 Thread mani
adverse effect anywhere ? Thanks. On Fri, May 27, 2011 at 8:37 PM, Eduardo Silva wrote: > On Fri, May 27, 2011 at 8:29 AM, mani wrote: > > > > Dear All, > > > > I am working on linux kernel 2.6.32.9 tegra NVIDIA board. > > > > I am getting ~8MBps

Changes in block layer for IOScheduler Insertion selection

2011-05-27 Thread mani
); } changed ELEVATOR_INSERT_SORT to ELEVATOR_INSERT_BACK it improves my NAND speed to 10MBps. I am using "noop" I/O scheduler. Will this change have any adverse effect in kernel ? or any other side effect as far as i am using only Nand no Hard disk. T