Re: Documentation - how to apply patches for various trees
Thanks for this wonderful effort! Add one more to the testing team. ~Puneet Jesper Juhl wrote: Hi, How to apply the -rc, -git, -mm and the 2.6.x.y (-stable) patches is a quite frequently asked question on LKML and elsewhere. Since so many people seem to be confused by this I gathered it ought to be properly documented once and for all so we a) get more people testing those trees and b) get asked this question less often. So, I sat down and wrote such a document. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Linux, Get the facts?
Hmmm . They put it such that it plays only in microsoft media player. Case closed :) ~Puneet Alejandro Bonilla wrote: Hi Guys/Gals, I watched some commercials and I almost puked when I looked at the Microsoft Get the Facts for Linux vs Windows Server stuff. They have a url which is http://www.microsoft.com/getthefacts - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Linux, Get the facts?
Hmmm . They put it such that it plays only in microsoft media player. Case closed :) ~Puneet Alejandro Bonilla wrote: Hi Guys/Gals, I watched some commercials and I almost puked when I looked at the Microsoft Get the Facts for Linux vs Windows Server stuff. They have a url which is http://www.microsoft.com/getthefacts - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: Documentation - how to apply patches for various trees
Thanks for this wonderful effort! Add one more to the testing team. ~Puneet Jesper Juhl wrote: Hi, How to apply the -rc, -git, -mm and the 2.6.x.y (-stable) patches is a quite frequently asked question on LKML and elsewhere. Since so many people seem to be confused by this I gathered it ought to be properly documented once and for all so we a) get more people testing those trees and b) get asked this question less often. So, I sat down and wrote such a document. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: i387 floating-point test program/benchmark
Chuck Ebbert wrote: /* fp.c: i387 benchmark/test program */ [EMAIL PROTECTED] C]$ cc FPUtest.c -o FPUtest FPUtest.c: In function `main': FPUtest.c:103: warning: passing arg 2 of `sched_setaffinity' makes integer from pointer without a cast FPUtest.c:103: error: too few arguments to function `sched_setaffinity' - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: PROBLEM:Machine hangs on pulling out USB cd writer on laptop.
Alejandro Bonilla wrote: Puneet Vyas wrote: PS : I am not even sure if I am "allowed" to pull out the writer like this. Am I supposed to "stop" the device first or something? You are supoused to unmount the volume. Try it. umount /dev/cdrom ? Make sure that is it not in use, then unload it. New versions of gnome and so have the option to right click the loaded device and then to unmount. It should never hang. Does it hang with the floppy when removed? 1. When I did umount /dev/cdrom it says - "umount: /dev/hdc is not mounted (according to mtab)" 2. Yes Thanks, Puneet - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: PROBLEM:Machine hangs on pulling out USB cd writer on laptop.
Alejandro Bonilla wrote: Also, go to a tty (ctrl+alt+f1), login and then unplug the device, If it gives a kernel panic, show the output here. .Alejandro Thanks for looking into this. I tried the tty and got the following messages in continuous loop (they were scrolling past real fast but since there were only two messages they kind of overlapped so I could write them down) ide : failed opcode was : unknown hdc : status error: status 0x00 { } Is there anything else that I can provide? ~Puneet - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: PROBLEM:Machine hangs on pulling out USB cd writer on laptop.
Alejandro Bonilla wrote: Also, go to a tty (ctrl+alt+f1), login and then unplug the device, If it gives a kernel panic, show the output here. .Alejandro Thanks for looking into this. I tried the tty and got the following messages in continuous loop (they were scrolling past real fast but since there were only two messages they kind of overlapped so I could write them down) ide : failed opcode was : unknown hdc : status error: status 0x00 { } Is there anything else that I can provide? ~Puneet - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: PROBLEM:Machine hangs on pulling out USB cd writer on laptop.
Alejandro Bonilla wrote: Puneet Vyas wrote: PS : I am not even sure if I am allowed to pull out the writer like this. Am I supposed to stop the device first or something? You are supoused to unmount the volume. Try it. umount /dev/cdrom ? Make sure that is it not in use, then unload it. New versions of gnome and so have the option to right click the loaded device and then to unmount. It should never hang. Does it hang with the floppy when removed? 1. When I did umount /dev/cdrom it says - umount: /dev/hdc is not mounted (according to mtab) 2. Yes Thanks, Puneet - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: xor as a lazy comparison
Jan Engelhardt wrote: To confuse you, coders with assembly or hardware background throw in I doubt that. I'm good enough assembly to see this :) equivalent bit operations to succinctly describe their visualisation of solution space... Perhaps the writer _wanted_ you to pause and think? Maybe the compiler produces better code? Try it and see. It produces a simple CMP. Should not be inefficient, though. Jan Engelhardt I just compiled two identical program , one with "!=" and other with "^". The assembly output is identical. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: kernel 2.6 speed
Ciprian wrote: Hi guys! I got a question for you. Apparently kernel 2.6 is much slower then 2.4 and about 30 times slower then the windows one. I'm not an OS guru, but I ran a little and very simple test. The program bellow, as you can see, measures the number of cycles performed in 30 seconds. //- START CODE #include #include int main() { time_t initialTime; time_t testTime; long counter = 0; double test = 1; time(); testTime = initialTime; printf("Here we go...\n"); while((testTime-initialTime) < 30) { time(); test /= 10; test *= 10; test += 10; test -= 10; counter ++; } printf("No. of cycles: %ld\n", counter); return 0; } // END CODE --- In windows were performed about 300 millions cycles, while in Linux about 10 millions. This test was run on Fedora 4 and Suse 9.2 as Linux machines, and Windows XP Pro with VS .Net 2003 on the MS side. My CPU is a P4 @3GHz HT 800MHz bus. I published my little test on several forums and I wasn't the only one who got these results. All the other users using 2.6 kernel obtained similar results regardless of the CPU they had (Intel or AMD). Also I downloaded the latest kernel (2.6.12), configured it specifically for my machine, disabled all the modules I don't need and compiled it. The result was a 1.7 MB kernel on which KDE moves faster, but the processing speed it's the same - same huge speed ratios. Also, it shouldn't have any importance, but my HDD is SATA so the specific modules were required. I don't think its SCSI modules have any impact on the processing speed, but you know more on the kernel architecture then I do. Now, can anyone explain this and suggest what other optimizations I should use? The 2.4 version was a lot faster. I thought the newer versions were supposed to work faster (or at least just as fast) AND to offer extra features. Any help would appreciate. Thanks, Ciprian __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ Want to increase the latest kernel "speed" by 5 times ? Use the follwoing code instead. :) // -- Start Code #include #include int main() { clock_t initialTime; clock_t testTime; long counter = 0; double test = 1; initialTime = clock() / CLOCKS_PER_SEC; testTime = initialTime; printf("Here we go...\n"); while((testTime-initialTime) < 30) { testTime = clock()/CLOCKS_PER_SEC; test /= 10; test *= 10; test += 10; test -= 10; counter ++; } printf("No. of cycles: %ld\n", counter); return 0; } // End code so essentially you are timing just the time() function. HTH, Puneet - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: kernel 2.6 speed
Ciprian wrote: Hi guys! I got a question for you. Apparently kernel 2.6 is much slower then 2.4 and about 30 times slower then the windows one. I'm not an OS guru, but I ran a little and very simple test. The program bellow, as you can see, measures the number of cycles performed in 30 seconds. //- START CODE #include stdio.h #include time.h int main() { time_t initialTime; time_t testTime; long counter = 0; double test = 1; time(initialTime); testTime = initialTime; printf(Here we go...\n); while((testTime-initialTime) 30) { time(testTime); test /= 10; test *= 10; test += 10; test -= 10; counter ++; } printf(No. of cycles: %ld\n, counter); return 0; } // END CODE --- In windows were performed about 300 millions cycles, while in Linux about 10 millions. This test was run on Fedora 4 and Suse 9.2 as Linux machines, and Windows XP Pro with VS .Net 2003 on the MS side. My CPU is a P4 @3GHz HT 800MHz bus. I published my little test on several forums and I wasn't the only one who got these results. All the other users using 2.6 kernel obtained similar results regardless of the CPU they had (Intel or AMD). Also I downloaded the latest kernel (2.6.12), configured it specifically for my machine, disabled all the modules I don't need and compiled it. The result was a 1.7 MB kernel on which KDE moves faster, but the processing speed it's the same - same huge speed ratios. Also, it shouldn't have any importance, but my HDD is SATA so the specific modules were required. I don't think its SCSI modules have any impact on the processing speed, but you know more on the kernel architecture then I do. Now, can anyone explain this and suggest what other optimizations I should use? The 2.4 version was a lot faster. I thought the newer versions were supposed to work faster (or at least just as fast) AND to offer extra features. Any help would appreciate. Thanks, Ciprian __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ Want to increase the latest kernel speed by 5 times ? Use the follwoing code instead. :) // -- Start Code #include stdio.h #include time.h int main() { clock_t initialTime; clock_t testTime; long counter = 0; double test = 1; initialTime = clock() / CLOCKS_PER_SEC; testTime = initialTime; printf(Here we go...\n); while((testTime-initialTime) 30) { testTime = clock()/CLOCKS_PER_SEC; test /= 10; test *= 10; test += 10; test -= 10; counter ++; } printf(No. of cycles: %ld\n, counter); return 0; } // End code so essentially you are timing just the time() function. HTH, Puneet - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: xor as a lazy comparison
Jan Engelhardt wrote: To confuse you, coders with assembly or hardware background throw in I doubt that. I'm good enough assembly to see this :) equivalent bit operations to succinctly describe their visualisation of solution space... Perhaps the writer _wanted_ you to pause and think? Maybe the compiler produces better code? Try it and see. It produces a simple CMP. Should not be inefficient, though. Jan Engelhardt I just compiled two identical program , one with != and other with ^. The assembly output is identical. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/