Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: AbNoRMiS on April 02, 2012, 06:26:37 AM

Title: cfq io scheduler is disabled in tinycore kernel?
Post by: AbNoRMiS on April 02, 2012, 06:26:37 AM
cfq io scheduler is disabled in tinycore kernel?
i tried kernel option elevator=cfq
but got a message that scheduler was not found
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: curaga on April 02, 2012, 07:38:57 AM
Yes, it is disabled.
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: AbNoRMiS on April 02, 2012, 09:42:56 AM
my computer slows down and sometimes almost stops during file operations
can you consider to include cfq io scheduler in the next tinycore release?
to be able to select it by kernel option at boot
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: curaga on April 02, 2012, 10:08:48 AM
Sorry, as it can only be built in, it would enlarge the kernel for all.

I doubt your issue is the IO scheduler, though. More likely it's some other bug in the kernel.
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: AbNoRMiS on April 03, 2012, 03:13:06 PM
it seems this is really some problems in the kernel
i made rolled back tinycore to version 4.3.1
and my computer again started to work normally
yea brakes are present because computer is old
but it works slow down not so as in version 4.4
when it came to swapping then computer almost stopped
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: curaga on April 04, 2012, 06:01:50 AM
Very curious, as the config hardly changed.

You could try to see if you can isolate the change that broke things between 3.0.3 and 3.0.21. Alternatively, you can run newer TC versions using the older kernel, by remastering the 3.0.3 modules to the 4.4 initrd for example.
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: Rich on April 04, 2012, 06:33:22 AM
Hi AbNoRMiS
You haven't mentioned things like processor speed, RAM, or which applications are loaded and running.
Is it possible the machine was at or near the limit of its capabilities to begin with?
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: AbNoRMiS on April 07, 2012, 01:53:57 AM
dear Rich
generally i have not complaint against my computer
this is an old but reliable compaq evo d500
pentium4 1.80ghz, 512 mb ram, 2 x hdd 250 gb
Quote
tc@box:~$ dmesg | grep ata
Memory: 506512k/524132k available (3222k kernel code, 17168k reserved, 1193k data, 448k init, 0k highmem)
      .data : 0xc0425b1e - 0xc05502c0   (1193 kB)
libata version 3.00 loaded.
ata_piix 0000:00:1f.1: version 2.13
ata_piix 0000:00:1f.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x2460 irq 14
ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x2468 irq 15
usbcore: registered new interface driver ums-datafab
ata2.00: ATA-7: SAMSUNG SP2514N, VF100-33, max UDMA/100
ata2.00: 488397168 sectors, multi 16: LBA48
ata2.00: configured for UDMA/100
ata1.00: ATA-7: ST3250820A, 3.AAD, max UDMA/100
ata1.00: 488397168 sectors, multi 16: LBA48
ata1.00: configured for UDMA/100
previously i used lxde but now i use jwm
mostly i use the following software
opera-11, seamonkey, firefox with flash11 and netsurf
pidgin and skype
gnome-mplayer, vlc, minitube with mplayer phonon backend
abiword and gnumeric
aria2, fatrat, transmission, mldonkey
sometimes i also use gimp2 and inkscape
agree that for these purposes my computer is suitable
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: Rich on April 07, 2012, 06:44:33 AM
Hi AbNoRMiS
Next time your computer slows down during a copy operation, enter the following:
Code: [Select]
free > free.txt
top -n 1 > top.txt
Attach or paste the contents of those files to your next post.
When the copy operation completes, enter:
Code: [Select]
sudo cache-clearThen do another copy operation and see if it is faster.
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: AbNoRMiS on April 08, 2012, 04:23:11 AM
Alternatively, you can run newer TC versions using the older kernel, by remastering the 3.0.3 modules to the 4.4 initrd for example.
thanks for good advice
not immediately understand how to do that
but then i made this script using remastering guide
http://wiki.tinycorelinux.net/wiki:remastering
Quote
#!/bin/sh

TMPDIR=/tmp/extract
DIR431=/tmp/extract.431

sudo rm -rf $DIR431
mkdir -p $DIR431
cd $DIR431
zcat /mnt/sda1/tc/4.3.1/core.gz | sudo cpio -i -H newc -d

sudo rm -rf $TMPDIR
mkdir -p $TMPDIR
cd $TMPDIR
zcat /mnt/sda1/tc/core.gz | sudo cpio -i -H newc -d

sudo rm -rf lib/modules/3.0.21-tinycore
sudo mv $DIR431/lib/modules/3.0.3-tinycore lib/modules

rm -f /tmp/core+remastering.gz
sudo find | sudo cpio -o -H newc | gzip -9 > /tmp/core+remastering.gz
advdef -z4 /tmp/core+remastering.gz
i hope that i did it correctly because seems it work
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: curaga on April 08, 2012, 10:26:15 AM
The script's correct, yes. I would just run it as root and skip all the sudos though ;)
Title: Re: cfq io scheduler is disabled in tinycore kernel?
Post by: AbNoRMiS on April 09, 2012, 10:43:50 AM
thank you curaga
let them live
 :)