Re: [expert] linux multitask performance?
Ok ... now I can check if it is working... and it does according to hdparm :-) Thanks Magnus Guy Van Sanden wrote: Did you also enable it to run at boot in MDK control center? You can check if the settings were made after reboot by using hdparm again (as root): do 'hdparm /dev/hda' (repeat for every drive) [EMAIL PROTECTED] src]# hdparm /dev/hda /dev/hda: multcount= 16 (on) IO_support = 1 (32-bit) unmaskirq= 1 (on) using_dma= 1 (on) keepsettings = 1 (on) readonly = 0 (off) readahead= 8 (on) geometry = 9732/255/63, sectors = 156355584, start = 0 You speciefied -u -d -k, this maps to unmaskirq, keepsettings, using_dma Happy hacking... On Tue, 2003-09-16 at 17:07, Magnus Wirström wrote: This is great ... I was looking for qa way to do this :) I did you say and put in a script in /etc/init.d/idedma (the script you attached). I wonder ... if there a way to see that the script is starting correctly and the settings are really made to my system? Anyway ... thanks for the tip Magnus Guy Van Sanden wrote: First of all, what kind of system are you on (CPU - RAM), which burner are we talking about? Is it an IDE burner with SCSI emulation? What could help a lot is tune your disc devices with hdparm (I got a huge boost out of this). Install hdparm with 'urpmi hdparm'. First turn to your hard drive (/dev/hda I will assume), since it is the source of data for both your writer OS and programs, it needs to work optimal. - check the current settings and mail the output to the list, this way we can advice you better. hdparm /dev/hda Now, make sure you have the specifications of your devices handy. I use these settings for my Hardisk: 'hdparm -c1 -d1 -k1 -u1 -X69 /dev/hda' Breaking it up: -c1: turn on 32-bit disk access -d1: turn on DMA (is probably on already) -k1: keep settings over bus reset (you need this) -u1: Unmasq IRQ (reduces waits between different disk operations) - Watch out with this one, it has been known to cause system instabilities on some motherboards/harddisks, but it works fine for me. -X69: force IDE-DMA Mode5 (UDMA 100) (adapt to your need, check 'man hdparm' Test them out to see which one suit you best. Now do almost the same for the cdrom/dvd/writer devices (e.g. /dev/hdc) 'hdparm -c1 -d1 -k1 -u1 /dev/hdc' 'hdparm -c1 -d1 -k1 -u1 /dev/hdd' Again, test it carefully. If you are satisfied with what you got, put it in a startup script like the one below (which is /etc/init.d/idedma) Then open the Control Center, go to system - services and set it to run at boot. --> done Additionally you can also switch filesystems to get an even better performance. I found ReiserFS very fast, XFS has been reported to be great too. Good luck and have a lot of fun! BEGIN SCRIPT #!/bin/sh # description: hdparm setup voor harddisks # chkconfig: 2345 99 00 HDPARM="/sbin/hdparm" case "$1" in 'start') echo "Setting up DMA parameters (hdparm)..." $HDPARM -qc1 -qd1 -qk1 -qu1 -qX69 /dev/hda $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdc $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdd touch /var/lock/subsys/idedma ;; 'stop') rm -f /var/lock/subsys/idedma ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 END SCRIPT On Wed, 2003-09-10 at 17:06, Vincent Chen wrote: Dear all, Recently, I bought a CDR. While burning CD using xcdroast at 48x, I can barely move my mouse or do anything else. It is still very smooth burning cd and surfing net under windows 2000. How should I tune my mandrake 9.0 for better performance? Thanks, - f/e$)i= Yahoo!e%f) f57gi!h 2c http://tw.promo.yahoo.com/mail_premium/stationery.html __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
Yea ... this gives me a idea how I will configure this :) Thanks for the help !!! Magnus Ronald J. Hall wrote: On Tuesday 16 September 2003 03:08 pm, Ronald J. Hall wrote: Yes, /etc/sysconfig/harddisks is the usual place to put those settings - remember to copy harddisks to /etc/sysconfig as harddiskshda or harddiskhdb or whatever your setup requires. "hdparm" needs to be installed as well. Argh - typos! That should have been "harddiskhda". :-( Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
Did you also enable it to run at boot in MDK control center? You can check if the settings were made after reboot by using hdparm again (as root): do 'hdparm /dev/hda' (repeat for every drive) [EMAIL PROTECTED] src]# hdparm /dev/hda /dev/hda: multcount= 16 (on) IO_support = 1 (32-bit) unmaskirq= 1 (on) using_dma= 1 (on) keepsettings = 1 (on) readonly = 0 (off) readahead= 8 (on) geometry = 9732/255/63, sectors = 156355584, start = 0 You speciefied -u -d -k, this maps to unmaskirq, keepsettings, using_dma Happy hacking... On Tue, 2003-09-16 at 17:07, Magnus Wirström wrote: > This is great ... I was looking for qa way to do this :) I did you say > and put in a script in > > /etc/init.d/idedma (the script you attached). I wonder ... if there a way to see > that the script is starting correctly and the settings are really made to my system? > > Anyway ... thanks for the tip > > Magnus > > > Guy Van Sanden wrote: > > >First of all, what kind of system are you on (CPU - RAM), which burner > >are we talking about? > > > >Is it an IDE burner with SCSI emulation? > > > >What could help a lot is tune your disc devices with hdparm (I got a > >huge boost out of this). > >Install hdparm with 'urpmi hdparm'. > > > >First turn to your hard drive (/dev/hda I will assume), since it is the > >source of data for both your writer OS and programs, it needs to work > >optimal. > >- check the current settings and mail the output to the list, this way > >we can advice you better. > >hdparm /dev/hda > >Now, make sure you have the specifications of your devices handy. > > > >I use these settings for my Hardisk: > >'hdparm -c1 -d1 -k1 -u1 -X69 /dev/hda' > >Breaking it up: > >-c1: turn on 32-bit disk access > >-d1: turn on DMA (is probably on already) > >-k1: keep settings over bus reset (you need this) > >-u1: Unmasq IRQ (reduces waits between different disk operations) - > >Watch out with this one, it has been known to cause system instabilities > >on some motherboards/harddisks, but it works fine for me. > >-X69: force IDE-DMA Mode5 (UDMA 100) (adapt to your need, check 'man > >hdparm' > > > >Test them out to see which one suit you best. > > > >Now do almost the same for the cdrom/dvd/writer devices (e.g. /dev/hdc) > >'hdparm -c1 -d1 -k1 -u1 /dev/hdc' > >'hdparm -c1 -d1 -k1 -u1 /dev/hdd' > >Again, test it carefully. > > > >If you are satisfied with what you got, put it in a startup script like > >the one below (which is /etc/init.d/idedma) > >Then open the Control Center, go to system - services and set it to run > >at boot. > > > >--> done > > > >Additionally you can also switch filesystems to get an even better > >performance. > >I found ReiserFS very fast, XFS has been reported to be great too. > > > >Good luck and have a lot of fun! > > > > > > > > BEGIN SCRIPT > >#!/bin/sh > ># description: hdparm setup voor harddisks > ># chkconfig: 2345 99 00 > > > >HDPARM="/sbin/hdparm" > > > >case "$1" in > >'start') > > echo "Setting up DMA parameters (hdparm)..." > > $HDPARM -qc1 -qd1 -qk1 -qu1 -qX69 /dev/hda > > $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdc > > $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdd > > touch /var/lock/subsys/idedma > > ;; > >'stop') > > rm -f /var/lock/subsys/idedma > > ;; > >*) > > echo "Usage: $0 { start | stop }" > > ;; > >esac > >exit 0 > > > > END SCRIPT > > > > > > > >On Wed, 2003-09-10 at 17:06, Vincent Chen wrote: > > > > > >>Dear all, > >> > >>Recently, I bought a CDR. While burning CD using > >>xcdroast at 48x, I can barely move my mouse or do > >>anything else. It is still very smooth burning cd and > >>surfing net under windows 2000. How should I tune my > >>mandrake 9.0 for better performance? > >> > >> > >>Thanks, > >> > >> > >>- > >>f/e$)i= Yahoo!e%f) > >>f57gi!h 2c > >>http://tw.promo.yahoo.com/mail_premium/stationery.html > >> > >> > >>__ > >>Want to buy your Pack or Services from MandrakeSoft? > >>Go to http://www.mandrakestore.com > >> > >> > > > > > > > > > > > > > >Want to buy your Pack or Services from MandrakeSoft? > >Go to http://www.mandrakestore.com > > > > > > > > > __ > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
On Tuesday 16 September 2003 03:08 pm, Ronald J. Hall wrote: > Yes, /etc/sysconfig/harddisks is the usual place to put those settings - > remember to copy harddisks to /etc/sysconfig as harddiskshda or harddiskhdb > or whatever your setup requires. "hdparm" needs to be installed as well. Argh - typos! That should have been "harddiskhda". :-( -- /\ Dark>Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
On Tuesday 16 September 2003 11:32 am, [EMAIL PROTECTED] wrote: > > This is great ... I was looking for qa way to do this :) I did you say > > and put in a script in > > > > /etc/init.d/idedma (the script you attached). I wonder ... if there a way > > to see that the script is starting correctly and the settings are really > > made to my system? > > I'm not in front of my Mandrake installation at the moment (actually the > drive is offline), but check for a file /etc/sysconfig/harddisks. IIRC, > this is the best place to configure those options. Yes, /etc/sysconfig/harddisks is the usual place to put those settings - remember to copy harddisks to /etc/sysconfig as harddiskshda or harddiskhdb or whatever your setup requires. "hdparm" needs to be installed as well. After you have everything going, as root, "hdparm /dev/hda" (or whatever device you're wanting to check" will show you what settings are in effect. Do a "man hdparm" for the various options but probably the most used are: hdparm /dev/hda (fill in your device) hdparm -i /dev/hda hdparm -Tt /dev/hda Hope this helps! :-) -- /\ Dark>Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
> This is great ... I was looking for qa way to do this :) I did you say > and put in a script in > > /etc/init.d/idedma (the script you attached). I wonder ... if there a way > to see that the script is starting correctly and the settings are really > made to my system? > I'm not in front of my Mandrake installation at the moment (actually the drive is offline), but check for a file /etc/sysconfig/harddisks. IIRC, this is the best place to configure those options. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
This is great ... I was looking for qa way to do this :) I did you say and put in a script in /etc/init.d/idedma (the script you attached). I wonder ... if there a way to see that the script is starting correctly and the settings are really made to my system? Anyway ... thanks for the tip Magnus Guy Van Sanden wrote: First of all, what kind of system are you on (CPU - RAM), which burner are we talking about? Is it an IDE burner with SCSI emulation? What could help a lot is tune your disc devices with hdparm (I got a huge boost out of this). Install hdparm with 'urpmi hdparm'. First turn to your hard drive (/dev/hda I will assume), since it is the source of data for both your writer OS and programs, it needs to work optimal. - check the current settings and mail the output to the list, this way we can advice you better. hdparm /dev/hda Now, make sure you have the specifications of your devices handy. I use these settings for my Hardisk: 'hdparm -c1 -d1 -k1 -u1 -X69 /dev/hda' Breaking it up: -c1: turn on 32-bit disk access -d1: turn on DMA (is probably on already) -k1: keep settings over bus reset (you need this) -u1: Unmasq IRQ (reduces waits between different disk operations) - Watch out with this one, it has been known to cause system instabilities on some motherboards/harddisks, but it works fine for me. -X69: force IDE-DMA Mode5 (UDMA 100) (adapt to your need, check 'man hdparm' Test them out to see which one suit you best. Now do almost the same for the cdrom/dvd/writer devices (e.g. /dev/hdc) 'hdparm -c1 -d1 -k1 -u1 /dev/hdc' 'hdparm -c1 -d1 -k1 -u1 /dev/hdd' Again, test it carefully. If you are satisfied with what you got, put it in a startup script like the one below (which is /etc/init.d/idedma) Then open the Control Center, go to system - services and set it to run at boot. --> done Additionally you can also switch filesystems to get an even better performance. I found ReiserFS very fast, XFS has been reported to be great too. Good luck and have a lot of fun! BEGIN SCRIPT #!/bin/sh # description: hdparm setup voor harddisks # chkconfig: 2345 99 00 HDPARM="/sbin/hdparm" case "$1" in 'start') echo "Setting up DMA parameters (hdparm)..." $HDPARM -qc1 -qd1 -qk1 -qu1 -qX69 /dev/hda $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdc $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdd touch /var/lock/subsys/idedma ;; 'stop') rm -f /var/lock/subsys/idedma ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 END SCRIPT On Wed, 2003-09-10 at 17:06, Vincent Chen wrote: Dear all, Recently, I bought a CDR. While burning CD using xcdroast at 48x, I can barely move my mouse or do anything else. It is still very smooth burning cd and surfing net under windows 2000. How should I tune my mandrake 9.0 for better performance? Thanks, - 每天都 Yahoo!奇摩 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖 http://tw.promo.yahoo.com/mail_premium/stationery.html __ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
Am Mittwoch, 10. September 2003 18:40 schrieb diego: > I'd bet it's not using DMA > > With IDE drives: man hddparm > would tell you the command, but no idea about how to get it when at scsi > emulation :-(( It's the same. There are still the ide device names. So you can chenage de DMA via hdparm. Martin -- H E L I X Gesellschaft für Software & Engineering mbH Hanauer Landstrasse 52 Telefon (069) 4789 35-30 D-60314 Frankfurt am Main Telefax (069) 4789 35-44 http://www.helix-gmbh.net[EMAIL PROTECTED] pgp0.pgp Description: signature
Re: [expert] linux multitask performance?
On Wednesday 10 September 2003 11:06 am, Vincent Chen wrote: > Dear all, > > Recently, I bought a CDR. While burning CD using > xcdroast at 48x, I can barely move my mouse or do > anything else. It is still very smooth burning cd and > surfing net under windows 2000. How should I tune my > mandrake 9.0 for better performance? > > > Thanks, Is it IDE or SCSI? If SCSI, I'm surpised. I have SCSI here and can do darn near *anything* while burning. If its IDE, then you probably don't have DMA turned on for it. If you don't have hdparm installed, do it. Then do a "man hdparm" for full details but what you are trying to do first is make sure DMA is turned on so as root: hdparm /dev/hdx (where x is the letter assigned to your CDR. If your hard drive is /dev/hda, then your CDR should be /dev/hdc) You don't have the hard drive and burner on the same IDE channel do you? It should be separate, BTW. Now you should have a listing of what your CDR is doing, look for using_dma = 0 (its off) or using_dma = 1 (its on) If its off, still as root, go to /etc/sysconfig/. Make another copy of the file harddisks and name it "harddiskhdc" (or whatever your CDR is). Now edit this file. Note the entry for DMA usage. Just turn it on and save it. DMA should now be enabled for your CDR. I'm not sure if you have to reboot for this change to take effect. You could use hdparm to turn DMA on for your CDR until you do reboot. BTW, you might want to use hdparm on your hard drive to make sure your getting optimal performance there as well. HTHs! :-) -- /\ Dark>Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
First of all, what kind of system are you on (CPU - RAM), which burner are we talking about? Is it an IDE burner with SCSI emulation? What could help a lot is tune your disc devices with hdparm (I got a huge boost out of this). Install hdparm with 'urpmi hdparm'. First turn to your hard drive (/dev/hda I will assume), since it is the source of data for both your writer OS and programs, it needs to work optimal. - check the current settings and mail the output to the list, this way we can advice you better. hdparm /dev/hda Now, make sure you have the specifications of your devices handy. I use these settings for my Hardisk: 'hdparm -c1 -d1 -k1 -u1 -X69 /dev/hda' Breaking it up: -c1: turn on 32-bit disk access -d1: turn on DMA (is probably on already) -k1: keep settings over bus reset (you need this) -u1: Unmasq IRQ (reduces waits between different disk operations) - Watch out with this one, it has been known to cause system instabilities on some motherboards/harddisks, but it works fine for me. -X69: force IDE-DMA Mode5 (UDMA 100) (adapt to your need, check 'man hdparm' Test them out to see which one suit you best. Now do almost the same for the cdrom/dvd/writer devices (e.g. /dev/hdc) 'hdparm -c1 -d1 -k1 -u1 /dev/hdc' 'hdparm -c1 -d1 -k1 -u1 /dev/hdd' Again, test it carefully. If you are satisfied with what you got, put it in a startup script like the one below (which is /etc/init.d/idedma) Then open the Control Center, go to system - services and set it to run at boot. --> done Additionally you can also switch filesystems to get an even better performance. I found ReiserFS very fast, XFS has been reported to be great too. Good luck and have a lot of fun! BEGIN SCRIPT #!/bin/sh # description: hdparm setup voor harddisks # chkconfig: 2345 99 00 HDPARM="/sbin/hdparm" case "$1" in 'start') echo "Setting up DMA parameters (hdparm)..." $HDPARM -qc1 -qd1 -qk1 -qu1 -qX69 /dev/hda $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdc $HDPARM -qc1 -qd1 -qk1 -qu1 /dev/hdd touch /var/lock/subsys/idedma ;; 'stop') rm -f /var/lock/subsys/idedma ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 END SCRIPT On Wed, 2003-09-10 at 17:06, Vincent Chen wrote: > Dear all, > > Recently, I bought a CDR. While burning CD using > xcdroast at 48x, I can barely move my mouse or do > anything else. It is still very smooth burning cd and > surfing net under windows 2000. How should I tune my > mandrake 9.0 for better performance? > > > Thanks, > > > - > 每天都 Yahoo!奇摩 > 海的顏色、風的氣息、愛你的溫度,盡在信紙底圖 > http://tw.promo.yahoo.com/mail_premium/stationery.html > > > __ > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
I'd bet it's not using DMA With IDE drives: man hddparm would tell you the command, but no idea about how to get it when at scsi emulation :-(( El mié, 10-09-2003 a las 17:25, HaywireMac escribió: > On Wed, 10 Sep 2003 23:06:04 +0800 (CST) > Vincent Chen <[EMAIL PROTECTED]> uttered: > > > > > Recently, I bought a CDR. While burning CD using > > xcdroast at 48x, I can barely move my mouse or do > > anything else. It is still very smooth burning cd and > > surfing net under windows 2000. How should I tune my > > mandrake 9.0 for better performance? > > I would bet it's the 48x burning. Linux handles multitasking *far* > better than Win, AFAIK, but it is still dodgy with multimedia tasks such > as burning, sound, and the like. It's all kinda "kludged" if you know > what I mean, since *nix was built as a server OS originally, the media > stuff is kinda piled on the best way they can for now, least tha's the > way I hear it. > > I keep my burning to 10x, and I can burn, read mail, web, compile > source, use VNC, and much more all at the same time without draining the > buffer or maxing my pitiful P3 866. > > Try using GCombust as an alternative, too. > > -- > HaywireMac > Registered Linux user #282046 > Homepage: nodex.sytes.net > ++ > Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org > ++ > You can never tell which way the train went by looking at the tracks. > > > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Diego Dominguez __/\__ | | Andalucia /\ Spain \/ |__ __| \/ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] linux multitask performance?
On Wed, 10 Sep 2003 23:06:04 +0800 (CST) Vincent Chen <[EMAIL PROTECTED]> uttered: > > Recently, I bought a CDR. While burning CD using > xcdroast at 48x, I can barely move my mouse or do > anything else. It is still very smooth burning cd and > surfing net under windows 2000. How should I tune my > mandrake 9.0 for better performance? I would bet it's the 48x burning. Linux handles multitasking *far* better than Win, AFAIK, but it is still dodgy with multimedia tasks such as burning, sound, and the like. It's all kinda "kludged" if you know what I mean, since *nix was built as a server OS originally, the media stuff is kinda piled on the best way they can for now, least tha's the way I hear it. I keep my burning to 10x, and I can burn, read mail, web, compile source, use VNC, and much more all at the same time without draining the buffer or maxing my pitiful P3 866. Try using GCombust as an alternative, too. -- HaywireMac Registered Linux user #282046 Homepage: nodex.sytes.net ++ Mandrake HowTo's & More: http://twiki.mdklinuxfaq.org ++ You can never tell which way the train went by looking at the tracks. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com