mds and mdworker processes are Spotlight indexing your drive
They should stop eventually (minutes or hours). You can't kill them, they come back!
If you have an external drive you plug in and remove often, you might want to disable Spotlight indexing of that drive, go to System Preferences > Spotlight and drag the external drive into the "do not index" pane.