I installed ubuntu 14.04LTS lately on an old pentium 4 with 1Gb of ram. It was unusable. I moved to Xubuntu and added another Gb of ram for a total of 2Gb. I set the swapiness to 10. All these changes helped a lot. Now it's an usable desktop computer, but still a bit slow for what I need.
I'm using it to make PHP development so LAMP, Netbeans and Chrome are installed. The problem is that when typing in Chrome or Netbeans, the CPU tops to 100% all the time which is a bit annoying cause there is always lag when typing. The ram is ok, it's always below 1Gb (0 mb of swap) out of 2Gb when Netbeans and Chrome (with a few tabs) are opened.
Is there something I can do or my CPU is just not enough fast?
PS: I would like to keep using Netbeans.
Edit -> Output of cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.40GHz stepping : 7 microcode : 0x33 cpu MHz : 2392.190 cache size : 512 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fdiv_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr bogomips : 4784.38 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 32 bits virtual power management: