Wednesday, May 20, 2009

host ip file

Windows 95/98/Me c:\windows\hosts

Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts

Windows XP Home c:\windows\system32\drivers\etc\hosts


Linux (/etc/hosts)

Tuesday, May 19, 2009

create multiple IP for one net card

ifconfig eth0:0 xx.xx.xx.xx netmask xx.xx.xx.xx

Reference:
http://publish.it168.com/2005/0925/20050925041401.shtml

Monday, May 18, 2009

create a scsi disk on Simics

1. create a image file
craff --decompress -o mydisk.img mydisk.craff

2. edit machine config file

$scsi_disk2 = (create-std-scsi-disk scsi_id = 2 size = $disk_size)

$scsi_bus.connect $scsi_disk2

@image2 = sim.objects[simenv.scsi_disk2].object_list['sd_image']
@image2.files = [["/mnt/sdb1/simics_image/mydisk.img", simenv.disk_perm, 0, simenv.disk_size]]

4. create partition on new disk
fdisk /dev/sdb

5. format new disk
mkfs.ext3 /dev/sdb1

5. mount new disk
mount /dev/sdb1 /mnt/sdb1

Thursday, May 7, 2009

simics profiling cache miss

./simics -stall targets/sunfire/walnut-common.simics

list-components
list-modules
list-objects

cache_cpu0.add-profiler type = data-read-miss-per-instruction
cache_cpu0.add-profiler type = data-write-miss-per-instruction

c 10000000
r

cache_cpu0.statistics
cache_cpu0_prof_data_read_miss_per_instruction.address-profile-data



http://youngdean.spaces.live.com/blog/cns!C9DCEEC5C7C0B32F!619.entry
http://youngdean.spaces.live.com/blog/cns!C9DCEEC5C7C0B32F!640.entry
http://youngdean.spaces.live.com/blog/cns!C9DCEEC5C7C0B32F!641.entry

Tuesday, May 5, 2009

submit and update sitemap.xml to Google

http://www.google.com/support/webmasters/bin/answer.py?answer=34609


To resubmit your Sitemap using an HTTP request:

  1. Issue your request to the following URL:
    www.google.com/webmasters/tools/ping?sitemap=sitemap_url

    For example, if your Sitemap is located at http://www.example.com/sitemap.gz, your URL will become:

    www.google.com/webmasters/tools/ping?sitemap=http://www.example.com/sitemap.gz
  2. URL encode everything after the /ping?sitemap=:
    www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2Fwww.yoursite.com%2Fsitemap.gz
  3. Issue the HTTP request using wget, curl, or another mechanism of your choosing.