General :: Where Can I Find Comprehensive Information On Optimizing
Nov 21, 2010
Where can I find comprehensive information on optimizing Linux? I keep searching online but seem to get only to performance monitoring. I don't want to run a lighter version of Linux or upgrade my hardware! Just want to get my current distro and future ones I might install to run at its best.
I have read a bajillion tutorials and have gotten nowhere. This is my first Linux box, and it has been nothing but headaches. i'm pretty handy around computers, I took a Unix class, and I used Dos as a kid, but i'm just having so much trouble with this.I just want to remotely control my Ubuntu box from my windows laptop over my home network. That's it. I cannot find one comprehensive step-by-step tutorial that will show me how to do this. Everything I find assumes I know at least something about linux, and I don't.
I have Putty, realvnc and tightvnc viewer installed on my laptop.I have open-ssh and vx11 somethingorotherinstalled on the Ubuntu box. I have also allowed remote connections on Ubuntu from system>preferences. I am getting very frustrated and would really appreciate someone giving me some help. So far I HAVE been able to remotely control the box through one method. Through the GUI on ubuntu I went to: System>Preferences>network connections
and set the server to static IP, then I was able to use real VNC viewer from my windows machine to connect to the IP I set (192.168.0.11) but I couldn't get there through servername.local or whatever it said. The problem witht his solution is that the Ubuntu box then couldn't connect to the internet (which I need it to do.) someone please please please direct me to the information I need for this simple task. I just need to remotely control the desktop, the reason I wanted to use vnc through ssh so that I can leave the ubuntu box headless. Using just VNC I was having problems when the box was rebooted (had to log in before I could remotely control it... something about a security key ring?)
Back in the old days of PC-DOS 3.1, computers are much simpler than today's. I can learn a lot of how File System works with tools like PCTools, Norton Disk Doctor, and [URL]. Have been working exclusive in corporate database application area for over a decade, my knowledge of how these stuff work is diminishing. Standard-clean OS (Windows, Linux) installation is all I can do now. And it starts to cause me many data-loss troubles, when I have to perform something that I don't have much insight, such as install and remove peer linux os or move and resize partitions.
I'm looking for books, web resources, or communities where I can educate myself on how various file system works, for which I can have in-depth answer to questions such as:
How to remove ubuntu and grub2 ? (I recently did that, but with a lot of frustration when I was not really sure what I was doing and confront with some scary error message like "Missing BootMgr" What kind of disk-partitioning operation can be performed non-destructively, and why ? What is Active partition ? Primary Parition ? Extended Partition ? How it stored on the disk. There are many free partitioning tools out there, which one is safe to used ? NTFS, Ext3, Ext4, .. What the differences ? How to choose it wisely.
getting freespire to recognize my 2nd hard drive and allow me to use it for things I want to save there and such. I also cannot get CNR to come up in my browser and need some information as to how to install programs.how to find installable programs,and install them.
So I've come across several tips to optimize battery life on Linux. [URLs]. In addition to undervolting, I would like to underclock. Is there a way to control CPU speed outside of the BIOS via some software control in Linux... or some sort of boot manager? I would like to boot to linux using underclocked speeds and have Windows running full blast. Is there a way to run Linux completely in RAM? I have read that saves on power consumption from the hard drive.
Question? Where can I find information about copyright? A real state agent took one of my pictures from facebook to use it for his bussiness. He charges 2.5% for marketing.
Is there a way to find out information about a process based on the command used to run it?
Ideally I would like to get processes ID %CPU and memory usage back. I have written a short shell script which does this but I wonderd was there a command that did this.
Here's my shell script
Code: #!/bin/bash ExpectedArgs=1 ARGS=$# if [ $ARGS != $ExpectedArgs ]
When I try to hit my jsp pages all that gets displayed is the source code.I cannot find any log files that give me any information. It seems as though apache is not forwarding requests to tomcat6 but I cannot verify this. I need some direction on what is happening here. I'm lost and have run out of options.Would JAVA classpaths cause this type of behaviour if they are wrong?
How would you make NIS user information override local user information on client systems? This is what I think is right? Add nis on the passwd registration file on the second line Is this correct?
I am working on optimizing the iptables. I came across some way of optimizing the rules by removing the redundant rules and merging the rules . Is there any other way to increase the optimization of iptables ?The network that we applied the iptables is a simple LAN network. (College Network)
I have just bought a digital-to-analog converter, this one to be exact, along with an amplificator and two speakers. I'd like to get the most of my Ubuntu, a good sound (what player can I use ?) and to know wether I need to do some extra changes in the kernel (OSS / PulseAudio / ALSA ?) or not.
I wonder if my converter will be detected when i plug it in, and if any sound from my computer will be leaded to it automatically ? (I'll have the converter tomorrow). I believe its purpose is to replace the sound card, to provide a greater, pure sound. The converter is linked by USB by the way.
I have a friend who is using Ubuntu 10.10 Netbook Edition on their netbook and well they love it. However, I notice that at times (if not all the time) their internet is ridiculously slow. Yes, it's a 1 Mbps download connection, but I still think it's a little slow and at times I can't even get it to load a website. I'm thinking if I adjusted the MTU within Ubuntu, it might improve, if even only slightly. I believe the router is set to 1490 or 1500, I haven't really looked yet.
I would like to ask how can I optimize apache2 load on my dedicated server. I am hosting Facebook applications on it, but most users will get a Timed Out message when they try to access it. I was tinkering with MaxClients directive in apache2 config, and it got better, but still it's not best. Programmers are trying their best to optimize the applications at their side, but I am afraid this is an server issue.
I wrote a little Bash script which accepts two values -- sender address and recipient address -- and finds any instances of mail sent from sender to recipient in /var/log/maillog. The script works fine, but it seems to be very inefficient. I'm just wondering how I can optimize it.
Code:
Example:
Code:
Again, it seems to work fine, but the script greps through /var/log/maillog three times -- first to find the sender; second to see if it's also going to the desired recipient; finally to view all instances of the message ID in the logs. This seems redundant and inefficient.
I'm trying to solve this problem, but always get Time limit exceeded. I've tried my best but still can't get under time limit. Could you please give me some hint about it?
I'm trying to write a program which would get information from a webpage and display the information on my desktop sort of like a widget. I kind of remember there being something like this already made, but for the life of me I can't remember what it's calledDoes anyone know?
I am running Ferdora 12 (constantine) 64 with Intel Xeon 3.2GHz processor + 12GB Ram. I am running this machine specifically for number chunching applications but it isnt running as fast as i thought it would! Are there any tips to optimizing the speed of processors in fedora?
I recently purchased a Western Digital 1TB USB hard drive to use for general data storage. I had thought about repartitioning it into 8 - 10 individual drives (most Linux users will doubtless understand the arguments for and against this) and reformatting them with another filesystem, probably ext2.
The unit actually consists of two 500GB drives that are presented by the internal controller as a single 1TB drive, and are formatted with the old HPFS/NTFS filesystem, so I'm a bit cautious about the possibility of my original plan confusing the drive's controller. Does anyone have any experience with these large drives, any thoughts about repartitioning/reformatting, and relevant criteria for optimizing their use?
I tried to summarize the this as best as possible in the title. I am writing an initial value problem solver in the most general way possible. I start with an arbitrary number of initial values at arbitrary locations (inside a boundary.) The first part of my program creates a mesh/grid (I am not sure which is the correct nuance), with N points total, that contains all the initial values. My goal is to optimize the mesh such that the spacing is as uniform as possible. My solver seems to work half decently (it needs some more obscure debugging that is not relevant here.)
I am starting with one dimension. I intend to generalize the algorithm to an arbitrary number of dimensions once I get it working consistently. I am writing my code in fortran, but feel free to reply with pseudocode or the language of your choice.Allow me to elaborate with an example:Say I am working on a closed interval [1,10]
I store my mesh/grid points in an array called coord. Say I want 10 points total in my mesh/grid.
N=10 coord(10)
Remember, all this is arbitrary--except the variable names of course. The algorithm should set coord to {1,2,3,4,5,6,7,8,9,10} Now for a less trivial example:
num_ivc=3 known(num_ivc)=[xmin,5.5,xmax or just num_ivc=1 known(num_ivc)=[5.5]
Now, would you have 5 evenly spaced points on the interval [1, 5.5] and 5 evenly spaced points on the interval (5.5, 10]? But there is more space between 1 and 5.5 than between 5.5 and 10. So would you have 6 points on [1, 5.5] followed by 4 on (5.5 to 10]. The key is to minimize the difference in spacing.I have been working on this for 2 days straight and I can assure you it is a lot trickier than it sounds. I have written code that
only works if N is large only works if N is small only works if it the known points are close together
[code]....
So as you can see, I have coded the gamut of almost-solutions. I cannot figure out a way to get it to perform equally well in all possible scenarios (that is, create the optimum spacing.)
On my bare metal server, I get about 130MB/s read from a software RAID 10 array, but when reading the same file from a VM via NFS over the VirtIO interface,I only get about 40MB/s.
Furthermore, the process for the VM uses >180% CPU on the host, and ~40%, and the 5 min average is ~1.5 on the host and guest. I have dual E5620's so I'm disappointed that the transfer is so slow, as I was expecting at least 90MB/s.
I'm new to being a sysadmin, so if anyone has some tips I can use to increase the transfer rate, and possibility reduce the CPU load as well I'd appreciate it. I'm assuming that 130MB/s is the max speed of two 7.2k HDDs, but if there's any way I can squeeze any more out that would be great too.
System specs:
2x Intel Xeon E5620s @ 2.40Ghz 8GB of RAM @ 1066Mhz 4x 1TB Western Digital Black HDDs in RAID10
I want to put centOS on a laptop with the i7-640M processor. I'm trying to figure out before I purchase a laptop which laptop (if any) will work sufficiently well with centOS. The software I'll be running is only qualified on centOS.Where do I look to find such information?Specifically I'm considering the hp online configurable dv5t laptop with the i7-640M processor.
I'm planning to leave it in a closet most of the time and VNC over VPN to get to it.Digressing still further, the performance for a single threaded application as well as the price and power consumption for "always on" make it a good choice for a server applicaion... not to mention the battery backup in the event of power failure. It may not be designed to operate under high CPU load for extended periods of time so I my use external fans to improve ventilation around the unit or take other steps to mitigate a cooling deficiency.Digressing yet still further, yes I do need the performance of the i7 so lower power processors are not an option. I just really only need one or sometimes 2 cores at most making the 32nm i7-640M ideal.
I have a dual boot on a netbook with windows and fedora13. When I am on my fedora boot and I try to watch streaming video it comes through in waves or not at all. I do not have the same problems on the alternate boot. There are other performance comparisons where the windows boot runs smoother and faster. Is there any work I can do in order to optimise my fedora boot in this capacity?
When I view a file in Linux with the 'less' command, I often only get a ":" prompt in the bottom left corner. There's no clue about how long the file will be, or at which location I am currently. When reading manpages with 'man', there's a file title and line number in that corner. And once I hit the end of the file, there's even a percentage shown. I've learned about 'less -m' but it's not that powerful. So what does 'man' differently from 'less'? They appear to be the same viewing programme, except for that file information difference.